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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,215,480
Messages
6,125,050
Members
449,206
Latest member
Healthydogs

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