Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Using INDEX & MATCH to search different columns

Hi. I am trying to develop a worksheet that searches someone else's XLS to
reconcile data. The other user has data in two differnt columns (to keep
prints to one page and save space).

I am using this formula =INDEX(Working!B:B,MATCH(I2,Working!A:A,0)) to
look for data and match my data to their data for our reports. For example,
if a computer is inventoried in office # 1 and gets moved to office #3, my
report should reflect office #3 as well. However, the computer might be in
column C or it might be listed in column F.

Is there a way to use this formula (or some other) to query different
columns in the same sheet and return to me the location?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Using INDEX & MATCH to search different columns

You can nest it to sequentially index n match, something like this ...

Assuming that in sheet: Working
the lookup/match values are listed in cols A and C,
with corresponding return values in cols B and D
(col B for col A, col D for col C)

On your sheet, the lookup values are in col I, in I2 down
You could use this in say, H2:
=IF(ISNA(MATCH(I2,Working!A:A,0)),IF(ISNA(MATCH(I2 ,Working!C:C,0)),"",INDEX(Working!D:D,MATCH(I2,Wor king!C:C,0))),INDEX(Working!B:B,MATCH(I2,Working!A :A,0)))
and copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Scott A" wrote:
Hi. I am trying to develop a worksheet that searches someone else's XLS to
reconcile data. The other user has data in two differnt columns (to keep
prints to one page and save space).

I am using this formula =INDEX(Working!B:B,MATCH(I2,Working!A:A,0)) to
look for data and match my data to their data for our reports. For example,
if a computer is inventoried in office # 1 and gets moved to office #3, my
report should reflect office #3 as well. However, the computer might be in
column C or it might be listed in column F.

Is there a way to use this formula (or some other) to query different
columns in the same sheet and return to me the location?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Using INDEX & MATCH to search different columns

Max,

Appreciate the timely help. Your solution fits the bill.

"Max" wrote:

You can nest it to sequentially index n match, something like this ...

Assuming that in sheet: Working
the lookup/match values are listed in cols A and C,
with corresponding return values in cols B and D
(col B for col A, col D for col C)

On your sheet, the lookup values are in col I, in I2 down
You could use this in say, H2:
=IF(ISNA(MATCH(I2,Working!A:A,0)),IF(ISNA(MATCH(I2 ,Working!C:C,0)),"",INDEX(Working!D:D,MATCH(I2,Wor king!C:C,0))),INDEX(Working!B:B,MATCH(I2,Working!A :A,0)))
and copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Scott A" wrote:
Hi. I am trying to develop a worksheet that searches someone else's XLS to
reconcile data. The other user has data in two differnt columns (to keep
prints to one page and save space).

I am using this formula =INDEX(Working!B:B,MATCH(I2,Working!A:A,0)) to
look for data and match my data to their data for our reports. For example,
if a computer is inventoried in office # 1 and gets moved to office #3, my
report should reflect office #3 as well. However, the computer might be in
column C or it might be listed in column F.

Is there a way to use this formula (or some other) to query different
columns in the same sheet and return to me the location?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Using INDEX & MATCH to search different columns

Welcome, Scott.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Scott A" wrote in message
...
Max,
Appreciate the timely help. Your solution fits the bill.



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
Index Match 2 columns 1 row deeds Excel Worksheet Functions 2 August 31st 08 09:36 AM
data filtering via vlookup or index/match/find or search withwildcard [email protected] Excel Worksheet Functions 10 April 29th 08 02:43 AM
Index Match for 2 columns and one Row [email protected] Excel Worksheet Functions 11 September 28th 06 07:50 PM
Index/Match from multiple columns hgopp99 Excel Worksheet Functions 5 January 21st 06 06:13 PM
Using Search with either vlookup or match and index jlowenstein Excel Worksheet Functions 1 July 22nd 05 03:18 AM


All times are GMT +1. The time now is 07:02 PM.

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

About Us

"It's about Microsoft Excel"