Using AND Formula in Conditional Formatting

scheldor

New Member
Joined
Oct 31, 2017
Messages
3
Hi All - Having problems using my AND formula in conditional formatting... The formula below returns 'TRUE' when pasted into a cell, but does not trigger the conditional formatting rule. Any ideas why?

=AND(INDIRECT("Invoice!"&K$2&ROW(K6))=51258.5,INDIRECT("Invoice!"&L$2&ROW(K6))=46832)

For the purposes of this example, cell K2 simply contains the letter 'k' and L2 the letter 'l'.

Thanks in advance
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Just an idea - I'm not sure about this but could it be because it's referring to a different sheet ?

Can you get this formula to work in Conditional Formating actually on the "Invoice" sheet ?
 
Upvote 0
Thanks for the reply - it's made me realise that the INDIRECT function is causing the issue. Still not sure why, but I've been able to find a way of referencing the sheet I need without using INDIRECT and the conditional formatting now works.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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