Working with the "IF" function

G

Guest

I am trying to create a registry for tracking mileage. I have two collums: One titled "Personal Miles" and the other titled "Business Miles". Both of these collums have the conditional "IF" function contained in each of their cells. From those two collums I am trying to obtain a total into a third collum by using the function:

=IF(AND(ISBLANK(H4),ISBLANK(I4)),"",K3+H4+H3

but it gives me a #VALUE! error

If anyone can help, please

Michael
 
D

Dave R.

The only part I can see that would lead to that error, is that k3, h4 or h3
do not contain numbers (at least not as Excel thinks). I assume this works
OK for when both I4 and H4 is blank.



Michael of Hanson said:
I am trying to create a registry for tracking mileage. I have two collums:
One titled "Personal Miles" and the other titled "Business Miles". Both of
these collums have the conditional "IF" function contained in each of their
cells. From those two collums I am trying to obtain a total into a third
collum by using the function:
 
A

Alan

It works OK for me unless I enter a text item in H4 or I4
Regards,
Alan.
Michael of Hanson said:
I am trying to create a registry for tracking mileage. I have two collums:
One titled "Personal Miles" and the other titled "Business Miles". Both of
these collums have the conditional "IF" function contained in each of their
cells. From those two collums I am trying to obtain a total into a third
collum by using the function:
 
D

Dave R.

I dont see why it would care if theres text in I4 since it's not being
added, but I can see that if there were text in the cells to be added it
wouldn't work.
 
A

Alan

You're right, only if there's text in H4
Dave R. said:
I dont see why it would care if theres text in I4 since it's not being
added, but I can see that if there were text in the cells to be added it
wouldn't work.
 
S

sam

Are the cells formated correctly?
-sam
-----Original Message-----
The only part I can see that would lead to that error, is that k3, h4 or h3
do not contain numbers (at least not as Excel thinks). I assume this works
OK for when both I4 and H4 is blank.



I have two collums:
One titled "Personal Miles" and the other
titled "Business Miles". Both of
 

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