+ Reply to Thread
Results 1 to 11 of 11

Excel 2007 : will IF statements work for this issue?

  1. #1
    Registered User
    Join Date
    04-07-2010
    Location
    southern california
    MS-Off Ver
    Excel 2003
    Posts
    7

    will IF statements work for this issue?

    I seem to be having a problem in determining which formula is the proper one to get the desired outcome. I have a data cell with text, and a data cell with numbers. One is to equal the other. The text column inlcudes a drop-down menu with five options. Each option has a corresponding dollar amount. I am trying to get the drop-down to automatically enter the numbers in the column containing the numbers.

    Such as this:
    I am setting up an invoice ticket for construction. We have different employees with different trades, which also means a different payscale. I am trying to set it up so that once their trade is entered, the value of that trade is automatically entered in a cell next to it. I thought the IF formula would work, but I am not using all values so I can't get it to work properly.

    Example:
    I11=Trade (I've created a drop-down list with all five trades that apply)
    L11=Hourly Rate (As it stands I manually enter their rate)

    So in a perfect (Excel) world, if I choose "Foreman" from the drop-down menu, the L11 cell will be automatically filled with the Foreman's hourly rate.

    THANKS!
    Last edited by LIZCONSTRUCTION; 04-08-2010 at 12:56 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: will IF statements work for this issue?

    Liz, please don't start a new thread every time you're asked to change the title.

    Set up a table that has the trade in the first column and the rate in the next column. Say this table is in X1 to Y5.
    Then in L11 you can use

    =vlookup(i11,$X$1:$Y$5,2,false)

  3. #3
    Registered User
    Join Date
    04-07-2010
    Location
    southern california
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: will IF statements work for this issue?

    I'm SO SO sorry! I thought everytime they asked me to re-do it that meant they deleted the last one. Thank you so much for your help -- this is my first time using the site!
    Last edited by Paul; 04-07-2010 at 06:46 PM. Reason: removed quote of full post

  4. #4
    Registered User
    Join Date
    04-07-2010
    Location
    southern california
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: will IF statements work for this issue?

    my values are located on sheet 1 since I don't want them visible on my actual invoice, but I can't figure out how to use that formula while using "Sheet 1" as my reference point.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: will IF statements work for this issue?

    =vlookup(i11,sheet1!$X$1:$Y$5,2,false)

  6. #6
    Registered User
    Join Date
    04-07-2010
    Location
    southern california
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: will IF statements work for this issue?

    I really appreciate all of your help. Unfortunately this solution is not working for me. Perhaps I should be a little more clear in my objective.

    On Sheet 1 I have column B with my trades (there are 10 total) and in Column C I have their corresponding hourly wages. On the sheet with my invoice, I have Column I for their trade (listed as text) as a drop-down menu with the 10 different trades. And Column L is for their corresponding wage.

    Essentially I was hoping to click the drop-down menu in Column I, select their respective trade, then the corresponding wage would automatically enter in Column L without me having to input it manually each time.

    Can you assist me in making this happen?

  7. #7
    Registered User
    Join Date
    04-03-2010
    Location
    inverness, Florida
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: will IF statements work for this issue?

    here is an example u can use
    Attached Files Attached Files
    Last edited by ramseyprescott; 04-07-2010 at 09:17 PM.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: will IF statements work for this issue?

    Unfortunately this solution is not working for me.
    Why not? You need to adjust the ranges to the location your data, of course.

    With your explanation above, this formula in cell L1 and copied down

    =vlookup(i1,sheet1!$B$1:$C$10,2,false)

    If that does not work, then post a sample file with your data layout. One little file is worth more than a hundred explanations.

  9. #9
    Registered User
    Join Date
    04-07-2010
    Location
    southern california
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: will IF statements work for this issue?

    Ramsey, this is EXACTLY what I'm talking about. I've copied your formula to apply to my format, I just dont know where to insert the "sheet1" part.

    Almost there...

  10. #10
    Registered User
    Join Date
    04-07-2010
    Location
    southern california
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: will IF statements work for this issue?

    Nevermind!! It worked!!! Thank you!!

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: will IF statements work for this issue?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    You might want to re-read the Thread Title rule because this title doesn't really comply
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1