Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
simplywitt
 
Posts: n/a
Default Lookup Data in Several Columns


What formula would I write to lookup a data match from another file that
may be in several columns? Example:

File #A - Contains "RF01" in cell F6
File #B - Contains columns B - G with possible matches but RF01 is in
column C.

=VLOOKUP(F6,STATUS, 2, FALSE)
How do I write a formula to search for my data in columns 1-5 and if it
exists, return a value of "I" instead having to search the exact column?
or could I nest several of the vlookup formulas together for columns B
- G? Any help is greatly appreciated.
Thanks
Cindy


--
simplywitt
------------------------------------------------------------------------
simplywitt's Profile: http://www.excelforum.com/member.php...o&userid=16812
View this thread: http://www.excelforum.com/showthread...hreadid=320104

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
and what is your expected result if you found this match for example in
row 3. Which column value should then be returned?

--
Regards
Frank Kabel
Frankfurt, Germany

"simplywitt" schrieb im
Newsbeitrag ...

What formula would I write to lookup a data match from another file

that
may be in several columns? Example:

File #A - Contains "RF01" in cell F6
File #B - Contains columns B - G with possible matches but RF01 is in
column C.

=VLOOKUP(F6,STATUS, 2, FALSE)
How do I write a formula to search for my data in columns 1-5 and if

it
exists, return a value of "I" instead having to search the exact

column?
or could I nest several of the vlookup formulas together for columns

B
- G? Any help is greatly appreciated.
Thanks
Cindy


--
simplywitt
---------------------------------------------------------------------

---
simplywitt's Profile:

http://www.excelforum.com/member.php...o&userid=16812
View this thread:

http://www.excelforum.com/showthread...hreadid=320104


  #3   Report Post  
Domenic
 
Posts: n/a
Default


=IF(COUNTIF([B.xls]Sheet1!$B$1:$G$100,F6),1,0)

Hope this helps!

simplywitt Wrote:
What formula would I write to lookup a data match from another file that
may be in several columns? Example:

File #A - Contains "RF01" in cell F6
File #B - Contains columns B - G with possible matches but RF01 is in
column C.

=VLOOKUP(F6,STATUS, 2, FALSE)
How do I write a formula to search for my data in columns 1-5 and if it
exists, return a value of "I" instead having to search the exact column?
or could I nest several of the vlookup formulas together for columns B
- G? Any help is greatly appreciated.
Thanks
Cindy



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=320104

  #4   Report Post  
simplywitt
 
Posts: n/a
Default


Thanks for your reply however that did not work. I am probably not
explaining myself very well. I wand to write a forumula in spreadsheet
A for cell A3 - I want to lookup value RF05 in spreadsheet B in columns
B - G, if value RF05 exists then I would like to return the value of
"I" if it is found. If it isn't found, return a value of "A" - IS THIS
POSSIBLE?

Spreadsheet A: "RF04" in cell F3
A B C D E F G H
1
2
3 RF05
4
5
6

Spreadsheet B:
A B C D E F G H
1 RF01 RFG3 ST10 SY69 RF05 4G01
2
3
4
5
6


--
simplywitt
------------------------------------------------------------------------
simplywitt's Profile: http://www.excelforum.com/member.php...o&userid=16812
View this thread: http://www.excelforum.com/showthread...hreadid=320104

  #5   Report Post  
Domenic
 
Posts: n/a
Default


Try the following...

=IF(COUNTIF(SheetB!B1:G100,SheetA!F3),"I","A")

...where SheetA!F3 contains your look up value (you can change that to
which ever cell suits) and Sheet1B!B1:G100 contains your range of data
for your lookup table (change this range accordingly).

Hope this helps!

simplywitt Wrote:
Thanks for your reply however that did not work. I am probably not
explaining myself very well. I wand to write a forumula in spreadsheet
A for cell A3 - I want to lookup value RF05 in spreadsheet B in columns
B - G, if value RF05 exists then I would like to return the value of
"I" if it is found. If it isn't found, return a value of "A" - IS THIS
POSSIBLE?

Spreadsheet A: "RF04" in cell F3
A B C D E F G H
1
2
3 RF05
4
5
6

Spreadsheet B:
A B C D E F G H
1 RF01 RFG3 ST10 SY69 RF05 4G01
2
3
4
5
6



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=320104



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
Colors of columns after sorting data in the supporting table Booger_Boy Charts and Charting in Excel 6 January 24th 05 02:41 PM
How to get pivot table data columns instead of rows Jessica Excel Discussion (Misc queries) 0 January 19th 05 04:29 PM
Drop-down selection fills data across multiple columns Tom Excel Discussion (Misc queries) 7 December 2nd 04 12:43 AM
Comparing Data in two columns Marianne Excel Worksheet Functions 3 November 5th 04 10:26 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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