+ Reply to Thread
Results 1 to 11 of 11

Help with VLOOKUP and another value

  1. #1
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Help with VLOOKUP and another value

    Hi, need help with this formula: =IF(VLOOKUP(A2,O:P,2,0)<=0.99 & (T2<=11),"3.5", "0")

    What I need is that IF A2 is less than 0.99 and in the same time also less than T2, set value to 3.5 and if less, set to zero.

    Thanks!
    Last edited by dandi10; 01-04-2022 at 02:05 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Help with VLOOKUP and another value

    I think you want it this way...
    =IF(AND(VLOOKUP(A2,O:P,2,0),T2<=11),"3.5","0")
    you are looking to do an and statement.
    now, if you want the output to be either 3.5 or 0 as TEXT, leave the quotes around them, if, however, you want them to be numbers, remove the quotes.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Help with VLOOKUP and another value

    Thanks but we are missing a value. I need 2 variations, the first VLOOKUP(A2,O:P,2,0)<=0.99 and also T2<=11

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Help with VLOOKUP and another value

    I need 2 variations, the first VLOOKUP(A2,O:P,2,0)<=0.99 and also T2<=11
    You are saying AND also less than or equal to 11, the formula I gave you gives you the AND ALSO T2 being less than or equal to 11.
    Have you tested it? Are you saying you need it to be OR T2 being less than or equal to 11?

    Perhaps a small sample posted with some actual examples AND expected results (per the yellow banner at the top of the post) so I (we) can see what you have and what you want would be a help.

  5. #5
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Help with VLOOKUP and another value

    Thanks, I have attached an excel. I need to set the formula in column E

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Help with VLOOKUP and another value

    sorry but I don't see any attachment, did you follow the instructions at the top of the post to attach a file?

  7. #7
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Help with VLOOKUP and another value

    Hi! Hope you can see it now. What I need is that IF P2 is less than 0.99 and in the same time also less than T2, set value to 3.5 and if more, set to zero.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Help with VLOOKUP and another value

    Sorry, still don't see it. They say there is a paperclip icon that people sometimes rely on but it doesn't work.
    you have to click on the "go advanced" button below the quick reply window, then midway down you'll see in blue font "manage attachments", click on that and it will open a window where you can upload a file from your computer, choose the file, hit upload, close the window and hit submit reply and the attachment should appear.

  9. #9
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Help with VLOOKUP and another value

    Uploading file
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    03-18-2010
    Location
    FL
    MS-Off Ver
    Excel 2016
    Posts
    147

    Re: Help with VLOOKUP and another value

    Finally, sorry, file was too big and didn't see the error.

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Help with VLOOKUP and another value

    I think this might be what you are looking for... =IF(AND(VLOOKUP(A2,O:P,2,0)<0.99,T2<=11),"3.5","0")
    but your first post says that
    IF A2 is less than 0.99 and in the same time also less than T2
    which tells me that this might be what you want...
    =IF(AND(VLOOKUP(A2,O:P,2,0)<0.99,VLOOKUP(A2,O:P,2,0)<T2),"3.5","0")
    but I'm not sure, the results returned for both of those formulas are no different than what you have now in cells E2 through E5.
    Can you provide the correct answers if they are wrong?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 12-08-2020, 05:16 AM
  2. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  3. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  4. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  5. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  6. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  7. Replies: 5
    Last Post: 07-29-2009, 07:53 AM

Tags for this Thread

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