#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Look Up Function

What function do I use if I have two spreadsheets and I want the master
spreadsheet to look up data on a second spreadsheet, if the data is on the
master I need it to make the record. Also, what options do I have to "mark"
the record, highlight row, change the font color, add a charachter to another
cell at the end of the row, etc.?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Look Up Function

Hi Whitney,

For a simple method, try using LOOKUP, VLOOKUP or HLOOKUP. The formula
wizard should help you out. However these rely on the data you are looking up
being sorted in alphabetical order. If you'd like something more robust (but
a bit more complicated) try a combination of MATCH and INDEX. MATCH will find
the data you are after (regardless of whether it's sorted) but only returns a
row number. INDEX will then find the correct data you are after by using that
row number. For example =INDEX(result range,MATCH(lookup value,lookup
range,0))

As for "marking" the record, go to the Format menu and choose Conditional
Formatting. You can then set the Format of the current cells based on what's
in the current cells or even based on other cells. It might take a bit of
playing around to get it to do exactly what you want though (especially the
subtle differences between relative and absolute references)

- Atreides
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Look Up Function

I guess I just need it to say Yes or No. I would liket Mastersheet to look at
Sheet2 and just say Yes if on the sheet and leave blank if not on the sheet


Mastersheet:
A B
Order ID Result (Y)

Sheet2
A
Order ID

"Atreides" wrote:

Hi Whitney,

For a simple method, try using LOOKUP, VLOOKUP or HLOOKUP. The formula
wizard should help you out. However these rely on the data you are looking up
being sorted in alphabetical order. If you'd like something more robust (but
a bit more complicated) try a combination of MATCH and INDEX. MATCH will find
the data you are after (regardless of whether it's sorted) but only returns a
row number. INDEX will then find the correct data you are after by using that
row number. For example =INDEX(result range,MATCH(lookup value,lookup
range,0))

As for "marking" the record, go to the Format menu and choose Conditional
Formatting. You can then set the Format of the current cells based on what's
in the current cells or even based on other cells. It might take a bit of
playing around to get it to do exactly what you want though (especially the
subtle differences between relative and absolute references)

- Atreides

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Look Up Function

Like this?:

Mastersheet
A B
1 aaa Y
2 bbb Y
3 ccc

Sheet 2
A
1 aaa
2 bbb

The formula in B1 would be:

=IF(ISNUMBER(MATCH(A1,Sheet2!$A$1:$A$2,0)),"Y","")

And so on...

Hope this helps

- Atreides

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Look Up Function

yes, exactly. It worked perfectly. Thank you

"Atreides" wrote:

Like this?:

Mastersheet
A B
1 aaa Y
2 bbb Y
3 ccc

Sheet 2
A
1 aaa
2 bbb

The formula in B1 would be:

=IF(ISNUMBER(MATCH(A1,Sheet2!$A$1:$A$2,0)),"Y","")

And so on...

Hope this helps

- Atreides

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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


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