+ Reply to Thread
Results 1 to 4 of 4

Vlookup in another sheet which involves an mathematical calculation and IF function

  1. #1
    Registered User
    Join Date
    09-29-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2007
    Posts
    5

    Vlookup in another sheet which involves an mathematical calculation and IF function

    Hello ,

    I am trying to figure out a formula that can lookup a number in Sheet 2, do an mathematical calculation and return me a 'Yes' or 'No' based on the answer of the calculation.

    The attached sheet clarifies it further.

    Thanks in advance for your help.
    Haroun
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Vlookup in another sheet which involves an mathematical calculation and IF function

    If your data in Sheet 2 column B was in order you could use VLOOKUP.
    It's not so we have to use this instead

    in Sheet 1!D2
    =IF((INDEX('Sheet 2'!E$2:E$5,(MATCH(A2,'Sheet 2'!B$2:B$5,0)),1)-2)/INDEX('Sheet 2'!D$2:D$5,(MATCH(A2,'Sheet 2'!B$2:B$5,0)),1)<3,"Yes","No")

    and copy down
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,600

    Re: Vlookup in another sheet which involves an mathematical calculation and IF function

    here's an example:
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    09-29-2012
    Location
    Kuwait
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup in another sheet which involves an mathematical calculation and IF function

    Thanks alot Special-K. thats exactly what i needed.

+ 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