excel conditional formatting AND isnumber

I'm trying to get my format sentence to work, but it just won't

I want to format the cell green if the cell is greater than the cell before it (and that cell contains a number)

I'm trying:

=INDIRECT(ADDRESS(ROW(),COLUMN()-1))>INDIRECT(ADDRESS(ROW(),COLUMN())) AND ISNUMBER(INDIRECT(ADDRESS(ROW(),COLUMN()-1)))

I added the and because some cells with text next before them got red. It works without the AND ISNumber part

enter image description here

9

2 Answers

Based on your above screenshot you can do this

enter image description here

3

You simply use AND in wrong way - arguments should be listed separated by commas:

=AND(INDIRECT(ADDRESS(ROW(),COLUMN()-1))>INDIRECT(ADDRESS(ROW(),COLUMN())),ISNUMBER(INDIRECT(ADDRESS(ROW(),COLUMN()-1))))

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like