Hi, I would like your help in formatting.
I would like to color in a table A1: E22, the pair of numbers found in the G1-H1
Only if both present and not just one.
thanks
numeri-doppi.zip
Hi, I would like your help in formatting.
I would like to color in a table A1: E22, the pair of numbers found in the G1-H1
Only if both present and not just one.
thanks
numeri-doppi.zip
Hi Berna11
Conditional formatting: =OR(A1=15,A1=32)
Select all the cells from A1 to E22, click on Conditional Formatting | New Rule | Use a formula ... , and then put this formula in the formula box:
=OR(AND(A1=$G$1,COUNTIF($A1:$E1,$H$1)>0),AND(A1=$H$1,COUNTIF($A1:$E1,$G$1)>0))
Then click the Format button, then the Fill tab, and choose your colour. Then OK your way out, and Excel will adjust those cell references as appropriate.
Hope this helps.
Pete
Hi @ Kevin numbers can vary in G1-H1
@ Pete your formula is not working for me one or two?
* ... $ H $ 1)> 0) and (A1 = $ H $ 1, ...?
Could you send me the file with the example?
thanks
Hi Berna11
Try:
=OR(A1=$G$1,A1=$H$1)
Edit: Formula corrected
Last edited by Kevin UK; 11-23-2012 at 02:22 PM. Reason: I'll get it right!
Hi,
@ Kevin colors even when there is only one number and not both.
@ Pete Ok! works perfectly
I had forgotten to replace a (,) with ( excel Italian.
Thanks a lot.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks