Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. thomasks

    Copy cells to another worksheet if value is correct

    I have an order worksheet that engineers choose parts from. The Vendor name is called out in cell H5. There are other worksheets with the names of the vendors on the tabs for each sheet. I would like to program a button that would look down through the front master sheet and sort the items that...
  2. thomasks

    Copy cell range from one worksheet to another based on value in specific cell

    I have an order worksheet that engineers choose parts from. The Vendor name is called out in cell H5. There are other worksheets with the names of the vendors on the tabs for each sheet. I would like to program a button that would look down through the front master sheet and sort the items that...
  3. thomasks

    delete row with specific text entered from input box

    I have a spreadsheet that I need to find rows with values entered by an input box. If the value is found, then delete the row. I want to be able to enter wildcards so that any value containing the text will result in deletion of the row. I used snippets I found on the web to get started, but I...
  4. thomasks

    excel formula with multiple conditions

    Here is my solution: =IF(C9="Yes",IF(B9<=2,"LT VFD",IF(B9<=5,"ClassicVFD","Powerflex")), IF(B9<=5, "LT Contact", IF(B9<=10, "Classic Contact", "Powerflex"))) Thanks for your help.
  5. thomasks

    excel formula with multiple conditions

    It was difficult to get the columns and rows to line up in the post. So I had to manipulate it to show you the spreadsheet. LT VFD is a non "Contact" model. Classic VFD is a non "Contact" model. "VFD" is a variable frequency model. There is a "Contact" model that is non VFD. So if the VFD column...
  6. thomasks

    excel formula with multiple conditions

    Here is an example of the table, I am trying to determine the values for H and I based on the values in B and C. [tab]A[tab][tab]B[tab][tab]C[tab][tab]D[tab][tab]E[tab][tab]F[tab][tab][tab]G[tab][tab][tab]H[tab][tab][tab]I 1 Unit[tab]Hp[tab]VFD[tab]Brake[tab]FLA[tab]BRFLA[tab]Branch[tab]A/S...
  7. thomasks

    excel formula with multiple conditions

    I have a spreadsheet that lists motors with HP and options like brakes and VFD. I need to look at the horsepower, and the VFD option and select a type of drive to use. The HP is in cell B9, the VFD option (which says "Yes" or "No") is in cell C9, the type of drive used will go in cell H9. The...
  8. thomasks

    check if sum of column is below a value, if not increment adjacent cell value by previous cell +1

    Yes that is exactly right. Thanks for the help![dazed]
  9. thomasks

    check if sum of column is below a value, if not increment adjacent cell value by previous cell +1

    The first one is controlled externally and is not calculated for the cabinet. I should have left that one out. These are circuits that must be limited to 24.5 amps per branch. I just want to go down the column adding up the full load amps till I reach 24.5 then assign it to a branch and continue...
  10. thomasks

    check if sum of column is below a value, if not increment adjacent cell value by previous cell +1

    Sorry I was not clear in my question. I have values in the column for full load amps (FLA). I need to check the sum of the values cells in the column until I reach a threshold of 24.5. Once the threshold is reached, then I have to start summing the values again from where it left off, and...
  11. thomasks

    check if sum of column is below a value, if not increment adjacent cell value by previous cell +1

    I have a column of values in I3 that I need to check the sum until I reach a threshold of 24.5 (full load amps). If the value exceeds 24.5 the cell J3 (branch number) needs to increment by the value of the previous cell in the row above plus 1. The first row will always start at 1. So if rows...
  12. thomasks

    Add new record only if not existing

    Ok, I got it. I have to have the line: rs.update just before rs.close.... duh... Thanks for all the help guys :)
  13. thomasks

    Add new record only if not existing

    Thanks Remou, Now the connection is opening fine. But.... I get an "Operation is not allowed in this context" error when I hit the rs.close line in my code. Do you know what causes this? When I try to go the the help file (F1) I get a blank screen.
  14. thomasks

    Add new record only if not existing

    Ok, I changed it, no effect. But thanks :)
  15. thomasks

    Add new record only if not existing

    Yes project is a text field. The sql string works fine if I put it in the query design window in sql view (from the debug.print). it's when it gets to the rs.open that I get an error.
  16. thomasks

    Add new record only if not existing

    Thanks guys, I tried this: Sub UpdateMasterDb() Dim cn As ADODB.Connection, rs As ADODB.Recordset Dim intResale As Integer Dim intHours As Integer ' On Error Resume Next intHours = Worksheets("Project pricing summary").Range("G60").Value + Worksheets("Project pricing...
  17. thomasks

    Add new record only if not existing

    I have some VBA code that takes field values from an excel worksheet and dumps them into a table in Access. I need to check if the record in the table exists first, and if it does than only update it. If it does not then add a new record. Here is the code I have so far. Sub UpdateMasterDb()...
  18. thomasks

    Calculate overtime in excel

    Ok here is what a coworker has come up with, and it appears to be working: Straight time: =IF(E4<=8,E4*1,"8")+IF(F4<=8,F4*1,"8")+IF(G4<=8,G4*1,"8")+IF(H4<=8,H4*1,"8") +IF(I4<=8,I4*1,"8")+IF(J4<=8,J4*1,"8") Time and a half...
  19. thomasks

    Calculate overtime in excel

    John, I tried your solution and it looks pretty good other than I always get time and a half unless it is Sunday. Any idea why? And thanks for your time. :)
  20. thomasks

    Calculate overtime in excel

    Well, like I said before, I can't seem to post the actual spreadsheet. but the data is outlined like this: column headers A1 - Employee name (data entered by employee) B1 - Mon hours (data entered by employee) C1 - Tue hours (data entered by employee) D1 - Wed hours (data entered by employee)...

Part and Inventory Search

Back
Top