Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Function on a range of Data

I am trying to check one column of data vs. another column in a separate
worksheet. If it equals, then I want it to return another column's data in
the 2nd worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF Function on a range of Data

"NCSUBoz" wrote:
I am trying to check one column of data vs. another column in a separate
worksheet. If it equals, then I want it to return another column's data in
the 2nd worksheet.


INDEX/MATCH would be one good way to do it ..

You can match on any column, and return any other column (to the left or
right of the matching col) via the INDEX part of it.

Eg to exact match a lookup value in Sheet1's A2
against Sheet2's col Z & return from Sheet2's col K

In Sheet1,
you could put in B2:
=INDEX(Sheet2!K:K,MATCH(A2,Sheet2!Z:Z,0))
B2 could be copied down to return correspondingly for other lookup values in
A3, A4, etc.

And if you need an error trap to return neat looking "blanks", viz. "" for
any unmatched cases (instead of ugly #N/As), you could use this in B2:
=IF(ISNA(MATCH(A2,Sheet2!Z:Z,0)),"",INDEX(Sheet2!K :K,MATCH(A2,Sheet2!Z:Z,0)))

Try Debra Dalgleish's nice coverage on INDEX/MATCH at her page:
http://www.contextures.com/xlFunctions03.html
INDEX/MATCH

There's also some sample workbooks available for d/l & study
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
DBSUM function but with function as criterion, not a range corne_mo Excel Worksheet Functions 3 July 13th 07 12:20 PM
Show Data In Range not appearing in Separate Range Brent E Excel Discussion (Misc queries) 3 April 30th 07 09:32 PM
return range of data from lookup function Boom1 Excel Worksheet Functions 0 August 18th 06 05:13 PM
return range of data from lookup function Boom1 Excel Worksheet Functions 0 August 18th 06 05:13 PM


All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"