#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Excel Issue


I want to search a specific data in column B and retrieve the data in Column
A.

Is there any way out for this or do I have to interchange the columns only!!!!

I hope somebody can help me out ??
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Issue

Try index/match, it's more versatile in that it allows you to index (ie
return) any col to the right or left of the match col

Eg something like this in Sheet1's B1:
=INDEX(Sheet2!A:A,MATCH(A1,Sheet2!B:B,0))
will return Sheet 2's col A with matching on Sheet2's col B
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Miki" wrote:
I want to search a specific data in column B and retrieve the data in Column
A.

Is there any way out for this or do I have to interchange the columns only!!!!

I hope somebody can help me out ??

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Excel Issue

It's working fine Max, but is there any other way to do this ????

"Max" wrote:

Try index/match, it's more versatile in that it allows you to index (ie
return) any col to the right or left of the match col

Eg something like this in Sheet1's B1:
=INDEX(Sheet2!A:A,MATCH(A1,Sheet2!B:B,0))
will return Sheet 2's col A with matching on Sheet2's col B
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,000 Files:358 Subscribers:55
xdemechanik
---
"Miki" wrote:
I want to search a specific data in column B and retrieve the data in Column
A.

Is there any way out for this or do I have to interchange the columns only!!!!

I hope somebody can help me out ??

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Issue

It's working fine Max,
Good to hear that

.. but is there any other way to do this ????

Since index/match gives you the flexibility mentioned earlier, which
addresses the intent underlying your original posting, what more could you
possibly be after, I wonder?

You could copy the top cell formula down to do it correspondingly for all
values. And you could use an IF(ISNA(..) error trap to return neat looking
blanks: "" for any unmatched cases, like this:
=IF(ISNA(MATCH(A1,Sheet2!B:B,0)),"",INDEX(Sheet2!A :A,MATCH(A1,Sheet2!B:B,0)))

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Excel Issue

THANKS A TON MAX !!!!



"Max" wrote:

It's working fine Max,

Good to hear that

.. but is there any other way to do this ????

Since index/match gives you the flexibility mentioned earlier, which
addresses the intent underlying your original posting, what more could you
possibly be after, I wonder?

You could copy the top cell formula down to do it correspondingly for all
values. And you could use an IF(ISNA(..) error trap to return neat looking
blanks: "" for any unmatched cases, like this:
=IF(ISNA(MATCH(A1,Sheet2!B:B,0)),"",INDEX(Sheet2!A :A,MATCH(A1,Sheet2!B:B,0)))

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Issue

Welcome. Do take a moment to press the "Yes" button below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Miki" wrote:
THANKS A TON MAX !!!!


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
Excel Issue Scott Excel Discussion (Misc queries) 5 July 8th 08 06:02 PM
Excel Issue Yaldain Excel Discussion (Misc queries) 0 August 30th 07 03:18 PM
Excel issue noor Excel Discussion (Misc queries) 1 January 9th 06 08:32 PM
Excel Issue Shane Excel Discussion (Misc queries) 4 September 26th 05 04:18 PM
Odd issue with Excel 97 SR-2 Gordon Excel Discussion (Misc queries) 3 February 10th 05 08:52 PM


All times are GMT +1. The time now is 07:10 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"