Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Pull data in a new colour

H

I have a workbook containing worksheets "Feb" "Apr" "Jun" "Aug" "Oct" & "Aug". There is a merged sheet called "Consolidated". On the consolidated sheet, I have information regarding all clients contined on the other sheets which is pulled in from each sheet

Some addresses are pulled from "Dec" and where there is no address in this sheet I work backwards until all addresses have been pulled in. I work backwards because "Dec" contains all the latest known addresses which may have been updated frim the other worksheets due to clients moving etc

The formulas I use for each part of the address is as follows

=IF(ISERROR(VLOOKUP($A2,'Dec'!$A$2:$E$447,5,FALSE) ),0,VLOOKUP($A2,'Dec'!$A$2:$E$447,5,FALSE)

This works fine but now I have to have a way to know which record is pulling from which sheet. Is there a way to add something to this code to make the text or cell a particular colour. I would like to have data pulled from "Dec" in red and data pulled from "Oct" in blue etc.

I hope this makes sense

Thanks in advanc

Malcolm Davidson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Pull data in a new colour

I don't believe you can do that with a worksheet
function. You would have to do it in VBA. But if you can
be a little flexible...You could add a column adjacent to
your lookup formula, hide it, and in that column have a
similiar lookup that returns a text constant. For example:

=IF(ISERROR(VLOOKUP($A2,'Dec'!$A$2:$E$447,5,FALSE) ),IF
(ISERROR(VLOOKUP($A2, 'Nov'!$A$2:$E$447, 5, FALSE)), IF
(.......<more sheets), "Nov"),"Dec")

Then you can evaluate that second column using the
conditional format feature. Using the "Formula is" option
in the condition, refer to the hidden column. For
example, =B1="Dec", as your value - then set your color in
the conditional.

Of course, you're only allowed three conditions in the
conditional format. :(

Good luck.

-Brad

-----Original Message-----
Hi

I have a workbook containing

worksheets "Feb" "Apr" "Jun" "Aug" "Oct" & "Aug". There
is a merged sheet called "Consolidated". On the
consolidated sheet, I have information regarding all
clients contined on the other sheets which is pulled in
from each sheet.

Some addresses are pulled from "Dec" and where there is

no address in this sheet I work backwards until all
addresses have been pulled in. I work backwards
because "Dec" contains all the latest known addresses
which may have been updated frim the other worksheets due
to clients moving etc.

The formulas I use for each part of the address is as

follows.

=IF(ISERROR(VLOOKUP($A2,'Dec'!

$A$2:$E$447,5,FALSE)),0,VLOOKUP($A2,'Dec'!
$A$2:$E$447,5,FALSE))

This works fine but now I have to have a way to know

which record is pulling from which sheet. Is there a way
to add something to this code to make the text or cell a
particular colour. I would like to have data pulled
from "Dec" in red and data pulled from "Oct" in blue etc..

I hope this makes sense.

Thanks in advance

Malcolm Davidson
.

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
Hyperlink into IE to pull data? Don Excel Discussion (Misc queries) 1 April 6th 09 08:28 PM
Pull data from various worksheet JMac[_2_] Excel Worksheet Functions 2 June 13th 08 03:58 PM
can the fill colour of a bar be tied to the data font colour data PaulC Charts and Charting in Excel 0 June 23rd 06 01:21 AM
pull data for a company with data in diff cells multiple wrkshts kcoachbiggs Excel Worksheet Functions 0 March 8th 06 09:24 PM
Pull multiple data luk_sr Excel Worksheet Functions 6 August 2nd 05 09:20 PM


All times are GMT +1. The time now is 06:35 AM.

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"