+ Reply to Thread
Results 1 to 9 of 9

IF 1 cell equals a range of others, return this cell

  1. #1
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    IF 1 cell equals a range of others, return this cell

    Hello

    What would be the formula be for excel to look up 1 cell in a range of others (range = MASTER!T4:CA4) and if it matches any of them, return the value of another cell?

    Thanks

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: IF 1 cell equals a range of others, return this cell

    hi ,

    Use Vlookup ,Index+Match Functions

    Punnam

  3. #3
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: IF 1 cell equals a range of others, return this cell

    Thanks but I wouldn't know what the formula would be?

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: IF 1 cell equals a range of others, return this cell

    Hi ,
    Provide a sample workbook.

    Punnam

  5. #5
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: IF 1 cell equals a range of others, return this cell

    It's quite a large workbook so I'll try give you what you need:

    The calculation will be in B20 the Depreciation sheet, IF(Investments cell H8 equals any of MASTER range T4:CA4, return cell G8 in the Investments sheet)

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: IF 1 cell equals a range of others, return this cell

    Hi,

    =vlookup(b20,H4:CA4,1,0)
    Assuming
    B20 is th value which are you trying to search
    H4:CA4 ,
    Column Number 1

    Punnam

  7. #7
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: IF 1 cell equals a range of others, return this cell

    Hi, maybe in B20:
    =IF(COUNTIF('MASTER'!T4:CA4,'Investments'!H8)>0,'Investments'!G8,"No match")
    Last edited by estige; 06-06-2014 at 07:06 AM. Reason: edited range in master sheet

  8. #8
    Forum Contributor
    Join Date
    04-04-2014
    Location
    Tetbury, England
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: IF 1 cell equals a range of others, return this cell

    Punnam, that didn't return the value of cell G8

    Estige, that works perfectly!! Thanks so much

  9. #9
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: IF 1 cell equals a range of others, return this cell

    hi,

    May be problem in choosing the column number try it once with different numbers.

    Punnam

+ 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. First data in a range that equals less than zero, return another cell
    By WillGrice in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2013, 01:07 PM
  2. If cellA equals range of values in cell c1-c999 return D?
    By Blaino in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2013, 07:13 AM
  3. [SOLVED] Return value if any of cells in range equals a specific value (cell)
    By G.Bregvadze in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-30-2013, 07:59 AM
  4. Replies: 3
    Last Post: 05-29-2009, 05:42 AM
  5. Replies: 2
    Last Post: 05-29-2009, 04:35 AM

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