Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default VLOOKUP using two worksheets?

Using Excel 2003: I have a worksheet that I have to update daily from data
that is created by an SQL query for orders created and not sent. I have to
distinguish between production and test vendors. I keep a separate worksheet
that has the vendor number & description and status. Once I update the first
spreadsheet with the SQL data, I would like to run something using the values
in my second worksheet that would change the background color of the test
vendors, parallel vendors, etc. in the first spreadsheet based on the
vendor/status in the second.

Here are the exact particulars: In the "POs Unsent 2007", the vendor number
is in column D, with anywhere from 1 to 2500 rows. In the "EDI Status
Report", the vendor number is in column A and status is in column C, with
anywhere from 1 to 50 rows.

Hope this explains it and many thanks for any and all help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default VLOOKUP using two worksheets?

In the second row of "POs Unsent 2007", in a new column, let's say Z, type:
=VLOOKUP(D2, 'EDI Status'!A1:C50, 3, 0)
This should retrieve the status of the vendor on the current row.

Then select the whole range A2:Z2500 and create a conditional formatting
(menu Format Conditional Formatting) with "Formula Is" |=$Z2="Test"| (don't
type the "|" characters), and format the cell when the condition is true. Add
up to two other conditions for the range, simply change "Test" by your
different statuses. Need more than 3? A macro will be needed!

Stephane Quenson

Rich K. wrote:
Using Excel 2003: I have a worksheet that I have to update daily from data
that is created by an SQL query for orders created and not sent. I have to
distinguish between production and test vendors. I keep a separate worksheet
that has the vendor number & description and status. Once I update the first
spreadsheet with the SQL data, I would like to run something using the values
in my second worksheet that would change the background color of the test
vendors, parallel vendors, etc. in the first spreadsheet based on the
vendor/status in the second.

Here are the exact particulars: In the "POs Unsent 2007", the vendor number
is in column D, with anywhere from 1 to 2500 rows. In the "EDI Status
Report", the vendor number is in column A and status is in column C, with
anywhere from 1 to 50 rows.

Hope this explains it and many thanks for any and all help.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200708/1

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
mulitple worksheets vlookup Max_power Excel Discussion (Misc queries) 7 March 21st 06 04:06 PM
Vlookup in different worksheets ErwinR Excel Worksheet Functions 1 December 13th 05 10:29 AM
Vlookup multiple worksheets SMRTnotCMPTRSMRT Excel Worksheet Functions 2 November 25th 05 09:25 PM
help with vlookup across multiple worksheets jnasr Excel Worksheet Functions 5 November 3rd 05 02:57 AM
Using vlookup on two worksheets Steven Robilard Excel Worksheet Functions 5 February 14th 05 11:59 PM


All times are GMT +1. The time now is 05:11 AM.

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"