+ Reply to Thread
Results 1 to 10 of 10

VLOOKUP and IF STATEMENT Combos

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    VLOOKUP and IF STATEMENT Combos

    Hi,

    Having trouble putting together the correct formula. Any and all help will be greatly appreciated. My set up reads similar to this. A1 is a drop down box with different words. B1 is a drop down box with different amounts. C1 is a manual input cell where numbers will be entered. D1 is where I will be entering my formula. To the right is a table where values will have to be looked up and related back to cell D1. So the table looks like this: Top Culumn (merged Cells) A1 word X4, Second column heading underneath C1 ranges X 4 repeated under every A1 word. Under the 4 repeated C1 ranges is different amounts for the look up. The the left, the rows are the number value looked up from drop down B1. I hope that was clear. So basically, the user will be selecting a word from drop down box A1 and B2, they are not dependent on one or the other except for the table obviously--the drop downs are independent, and then the user will input a number into C1. Based on this cell D1 will pull a number from the aformentioned table.

    Thank you guys so much!
    Attached Files Attached Files
    Last edited by NCAA; 04-12-2012 at 09:21 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: VLOOKUP and IF STATEMENT Combos

    Could you upload a sample workbook? It would make it easier to get it right at first try.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP and IF STATEMENT Combos

    Hi,

    I have uploaded. Can you please respond here rather than update the sample.

    Thanks so much.

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: VLOOKUP and IF STATEMENT Combos

    I would have to make some changes to your table in order to help you. I don't how you feel about that?

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP and IF STATEMENT Combos

    Quote Originally Posted by Søren Larsen View Post
    I would have to make some changes to your table in order to help you. I don't how you feel about that?
    Hi,

    Yes that would be fine. Feel free to work on the excel spreadsheet and upload it in that case.

    Thanks again.

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: VLOOKUP and IF STATEMENT Combos

    Would this do?
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP and IF STATEMENT Combos

    in D1, put the following formula.....

    =VLOOKUP(B1,RangeAll,LEN(A1)*4-INT(C1/100)+1,FALSE)

    I gave your data L12:AB15 a named range called rangeAll, but you could just use a reference if you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    03-26-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP and IF STATEMENT Combos

    Hi guys,

    Thanks for the help. Despite my best efforts I haven't been able to apply your formulas to my sheet. Soren, the 256 number in your formula has been giving me trouble. Anyways, I just edited my top post and attached a new spreadsheet. This is exactly where the table and formula cells are placed in my worksheet. The table isn't fully populated at the moment, however, it will be soon enough. If you could apply the formulas you guys used to this worksheet that would be fantastic.

    Again, thank you guys so much.

  9. #9
    Registered User
    Join Date
    03-26-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VLOOKUP and IF STATEMENT Combos

    Ok, I have figured out the equation, however, the next equation that needs to be completed is a bit over my head as the additional number value has added complexity that I am not used to.

    Basically, in the next cell over I need a formula that multiplies cell G25 by .75 if it is xxxx or by .25 if it is xxx. These data points are found below in my spreadsheet.

    Thanks again!
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: VLOOKUP and IF STATEMENT Combos

    Below are 2 formulas to place in H25; 1) is the simplest, and you can use that one if there are only the 2 choices of multiplier. 2) You can use if you at some point will be expanding the number of multiplier, making compound =IF()'s unfeasible.

    1) =G25*IF($E$25=$E$50,$E$51,$F$51)
    2) =G25*INDEX($E$51:$F$51,MATCH($E$25,$E$50:$F$50,0))

    Does this answer your question?

+ 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