Conditional formatting data from another worksheet

ParaSitius

New Member
Joined
Nov 11, 2013
Messages
11
Hi all,

I'm currently doing a MOST course and have recently come across conditional formatting for the first time which I thought would be quite useful in some of the work that I do in Excel 2003.

I've done a spot of searching on this forum before posting this question as I have come a bit stuck with getting CF to work correctly. I'm trying to use two colours depending on whether the cell is blank or is one or higher, a cell with zero is left white. I would like a blank cell to be purple and the cell >=1 to be yellow.

I believe I have got the initial part of pulling data from worksheet 'Grid' to worksheet 'T.I. Count' correct by using the following formula (the cell DZ3 is being used at it is the latest data in a large sheet).

=IF(ISBLANK(Grid!DZ3),"",Grid!DZ3) --the formula is used all the way down to row DZ81.

The above formula gives me the correct result in 'T.I. Count' so I can see the blanks, zeros and other numbers but I'm stuck with getting CF to show the correct colour.

I've tried using =MATCH but the examples I've tried to follow don't seem to work for me and all I seem to get is a white cell.

Any help would be appreciated.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
The formula shouldn't it be

=IF(ISBLANK(Grid!DZ3),"",Grid!DZ3) should be =IF(ISBLANK(Grid!DZ3),TRUE,1,0) apply the color if it is blank.


ISBLANK returns either TRUE or FALSE, so to say if its blank will not work.
 
Last edited:
Upvote 0
Your IF formula had wrong syntax, it is not like a SUMIF(range,lookupvalue,sumrange) so my formula on top isn;t working use this:

=IF(ISBLANK(Grid!DZ3)=TRUE,1,0)
 
Upvote 0
Hi Shyy,

I gave your first formula a try and Excel tells me their are too many argument's.

Your second formula gives me a result of 0 when there is a cell with a number in it or 1 for a blank cell.

The formula I've used gives me the result I'm looking for which matches the blank, 0 or number that is found in the Grid worksheet, my only problem is getting CF to colour in the cell.
 
Upvote 0
First formula returned error of too many arguments because I simply copied and edit your formula which already had the wrong syntax to it.

Second formula is correct, if the cell is blank to return 1 (true)

reading your post again try this:

Create three new rules for each cell.

=IF(Grid!DZ3
=0,1,0) Give white color
=IF(ISBLANK(Grid!DZ3)=TRUE,1,0) or use =IF(Grid!DZ3="",1,0) Give purple color
=IF(Grid!DZ3>=1,1,0) Give Yellow color

Color is not display but I used the following formulas.

=IF(A1="",1,0)
=IF(A1>=1,1,0)
=IF(A1=0,1,0)

Excel 2010
AB
10Returns White
21Returns Yellow
3Returns Purple
42Returns Yellow

<tbody>
</tbody>
Sheet6


I gave your first formula a try and Excel tells me their are too many argument's.

Your second formula gives me a result of 0 when there is a cell with a number in it or 1 for a blank cell.

The formula I've used gives me the result I'm looking for which matches the blank, 0 or number that is found in the Grid worksheet, my only problem is getting CF to colour in the cell.

 
Last edited:
Upvote 0
I finally figured out what I did wrong in the CF and it was all down to the my stupidity and having a space inbetween the double quotes.

All I needed were two conditions that say the following

cell value is equal to ="" -- colour purple
cell value is greater then or equal to 1 -- colour yellow

The answer was staring me in the face every time I looked at the cell formula.

Shyy, my apologies if I have wasted your time in helping me with this, it was much appreciated that you took the effort in helping me out.
 
Upvote 0

Forum statistics

Threads
1,216,818
Messages
6,132,877
Members
449,765
Latest member
Coffebreak

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top