IF Formuala

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

the formula that I am trying does not return the results that I need.

=IF(C16<="14-Sep-05",SUM(F16*$S$1),IF(C16>="15-Sep-05",SUM(F16*$S$2)))

Cell C16= date
Cell F16= Kilometers
Cell S1=0.37
and
Cell S2=0.40

The result I am getting is for the first part of the formula and not for the
second part when the date is greater than or equal to 15-Sep-05.
 
put your date text strings inside the DATEVALUE() function


=IF(C16<=DATEVALUE("14-Sep-05"),SUM(F16*$S$1),IF(C16>=DATEVALUE("15-Sep-05)",SUM(F16*$S$2)))
 
I suspect you have real dates in C16 but in your formula you are using text
Try =IF(C16<=DATE(2005,9,15),.........
best wishes
 

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

Back
Top