Return result when condition is met

G

Gotroots

The following formula returns the row number

=IF(INDIRECT("A"&ROW(IV4))="","",ROW())

I want it now to only return a result if "D" contains the value "No record"

Thank you
 
G

Glenn

Gotroots said:
The following formula returns the row number

=IF(INDIRECT("A"&ROW(IV4))="","",ROW())

I want it now to only return a result if "D" contains the value "No record"

Thank you


Do you mean this:


=IF(INDIRECT("D"&ROW(IV4))="No record",ROW(),"")
 
P

Paul C

you can nest your if statement like this

=IF(INDIRECT("A"&ROW(IV4))="","",IF(INDIRECT("A"&ROW(IV4))="D",ROW(),""))
 
G

Gotroots

Hello guys,

Sorry, but neither solutions worked.
Perhaps it's to do with the fact that the values in "D" are the result of a
relative formula
 
J

Jacob Skaria

If you mean both the conditions then try

=IF(AND(INDIRECT("A"&ROW(IV4))="",INDIRECT("D"&ROW(IV4))="No
record"),"",ROW())
 
G

Gotroots

Actually, Glenn's solution was successful after all, typo error on my part.

Thank you all for contributing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top