+ Reply to Thread
Results 1 to 8 of 8

Please help with Vlookup and If Statement

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2009
    Location
    London
    MS-Off Ver
    Excel 2003, 2007
    Posts
    80

    Please help with Vlookup and If Statement

    Hi All,

    Can someone help me with this please.. Please see the attached file for what i am trying to accomplish.

    I am not sure if this is possible with Vlookup. But here is what i want to do,

    vlookup Item# from the left table and check if if whether the watt is >100, 100 to 149, 150 to 194 etc, if it is, then give me the code?

    What i have in mind is this, =Vlookup(B4,G:G,IF(B4>100,H:H) but i am not sure if this is the right way of doing this that excel would understand.

    If there is anyone out there, that can help, i would really appreciate it.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by crazysniper; 10-24-2012 at 05:05 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,621

    Re: please help with formula

    Perhaps first amend your title per forum rules?

  3. #3
    Registered User
    Join Date
    08-28-2009
    Location
    London
    MS-Off Ver
    Excel 2003, 2007
    Posts
    80

    Re: Please help with Vlookup and If Statement

    Thanks Pepe. I've ammended it just now.

  4. #4
    Registered User
    Join Date
    08-28-2009
    Location
    London
    MS-Off Ver
    Excel 2003, 2007
    Posts
    80

    Re: Please help with Vlookup and If Statement

    anyone? it doesn't have to be vlookup with if statements. If there is another method of doing this i am open to suggestions

    Thanks in advance.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Please help with Vlookup and If Statement

    Okay, I assume that Column G should be unique ID's and that you'd have a full table of codes in H4:L8 (for example).
    In H2:L2, I put the minimum value for each catagory (i.e. 0,100, 150, 195, 204). Then you can use INDEX/MATCH to get results

    In D4 copied down
    =INDEX($H$4:$L$8,MATCH(B4,$G$4:$G$8,0),MATCH(C4,$H$2:$L$2))
    Is that what you were looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Please help with Vlookup and If Statement

    Hi

    See attached, you will need to sort a few things out, with regards to your lookup table highlighted in red. in cells D4:D8 is a INDEX and MATCH formula. Also 3 links to myonlinetraininghub.com, explaining VLOOKUP,HLOOKUP & INDEX+MATCH
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Please help with Vlookup and If Statement

    @Kevin. I think crazy meant H3 to be <100 not >100. That would make more sense

  8. #8
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Please help with Vlookup and If Statement

    @ChemistB. I'm not quite sure what crazy means As they have >100 in H3 & 100 to 149 in H4. But looking at it again it makes sense in what you say, could be a typo in H3!

    Have to wait and see what they come up with, I gave them a few links for lookups.

+ 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