How do I have a IF AND formula read 2 different cells to be true

G

Guest

I want to create a conditinal function that references 2 cells to be true -
this is what I have used for the formula but it is not referencing the C29
value to be true before doing the rest.

for example:
=IF(AND(C29="X",G29<L29),1,G29/L29)

Thanks for your help
 
T

Tim C

I think this is what you are trying to do:

=IF(C29="X",IF(G29>L29,1,G29/L29),"")

Which could also be done this way:

=IF(C29="X",MIN(G29/L29,1)),"")

Tim C
 

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