+ Reply to Thread
Results 1 to 5 of 5

Some type of IF function...

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    United Kingdom
    MS-Off Ver
    2003 at work and 2007 at home
    Posts
    11

    Some type of IF function...

    Hi everyone...

    Excel 2003 for this...

    I have a list of different ID's in column A of sheet 1 and I want to find them in column C of sheet 2 - if it's found I then want to return the value in the same row, but column AN (sheet 2) - if it's not found to write "CHECK".

    The first ID in sheet one is in cell A2.

    Could anyone offer any assistance please? Thanks very much.


  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Some type of IF function...

    hi Jammin91, not sure if i got you correctly. try:
    =IF(ISNA(VLOOKUP(A2,Sheet2!$C$2:$AN$10,38,0)),"",VLOOKUP(A2,Sheet2!$C$2:$AN$10,38,0))

    this is assuming your data in Sheet2 is from C2:AN10

    it would help if you have a sample Excel file. to upload a file, press "Go to Advanced" beside the "Post Quick Reply" button & click on the paperclip icon.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Some type of IF function...

    Try this in Sheet1

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Some type of IF function...

    Try this in a cell on row2 of sheet1:

    =IF(COUNTIF(Sheet2!$C:$C,A2)=0,"CHECK",VLOOKUP(A2:Sheet2!$C:$AN,38,0))

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    United Kingdom
    MS-Off Ver
    2003 at work and 2007 at home
    Posts
    11

    Re: Some type of IF function...

    All three work great, thanks very much guys, really appreciate it!


+ 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