Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Match Data in Multiple Columns

I would like to be able to search for data in 3 or 4 different columns and if
the items match then it lets me know what row that is. For example: Right
now I have this formula:
=IF(ISNUMBER(MATCH(E2,A:A,0)),"A"&MATCH(E2,A:A,0), "no") which finds what I
want in one column and then reports the row. Can I adjust this to include
the ability to search on columns A, B, and C?

ColA ColB ColC ColD
Row1 1/1/08 00012 12345 614
Row2 3/15/08 00034 6789 625

From another set of data, I want to seach in this set of data for 1/1/08 and
00012 and 12345 and if the data matches that set then return the row#.
Hopefully that makes sense.

Walter
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Match Data in Multiple Columns

One simple way to extend it using your current expression

In both Sheet1 and Sheet2 (assumed to be the other data set, identically
structured as the source Sheet1), just use a helper col, say col G, to concat
the 3 col fields together, eg:

In G1 (in both Sheets 1 & 2), copied down:
=A1&"#"&B1&"#"&C1&"#"

Then you could deploy your current expression like this
in say, Sheet1's H1, copied down:
=IF(ISNUMBER(MATCH(G1,Sheet2!G:G,0)),"A"&MATCH(G1, Sheet2!G:G,0),"no")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Walter" wrote:
I would like to be able to search for data in 3 or 4 different columns and if
the items match then it lets me know what row that is. For example: Right
now I have this formula:
=IF(ISNUMBER(MATCH(E2,A:A,0)),"A"&MATCH(E2,A:A,0), "no") which finds what I
want in one column and then reports the row. Can I adjust this to include
the ability to search on columns A, B, and C?

ColA ColB ColC ColD
Row1 1/1/08 00012 12345 614
Row2 3/15/08 00034 6789 625

From another set of data, I want to seach in this set of data for 1/1/08 and
00012 and 12345 and if the data matches that set then return the row#.
Hopefully that makes sense.

Walter

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Match Data in Multiple Columns

Typo in G1's formula, line should read as:

In G1 (in both Sheets 1 & 2), copied down:
=A1&"#"&B1&"#"&C1
--
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
MATCH UP DATA IN COLUMNS jickes Excel Worksheet Functions 2 March 2nd 06 01:14 AM
Index/Match from multiple columns hgopp99 Excel Worksheet Functions 5 January 21st 06 06:13 PM
I need to match multiple columns before returning a value hgopp99 Excel Discussion (Misc queries) 2 January 16th 06 02:46 PM
Vlookup/match/offset over multiple columns of lable csw78 Excel Discussion (Misc queries) 6 June 8th 05 04:39 PM
HOW TO MATCH MULTIPLE COLUMNS WITH OR WITHOUT GAPS IN eXCEL ? hims Excel Worksheet Functions 2 October 27th 04 07:03 PM


All times are GMT +1. The time now is 08:54 PM.

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"