Adding values generated by "IF" Statement

T

Terregles99

I have a spreadhseet that contains an "IF" statement as follows:

=IF(D5>0,"£150.00","0"). This statement works fine. I want to add up the
total at the bottom of the column containing the formula, but the =SUM
function doesn't appear to recognise the £150.00 as a value - I cannot get it
to "see" the amount.

I know this probably has a very simple solution but I've been working 12-14
hour days for 3 weeks without a break and cannot work out the solution
myself. Any help would be more appreciated than a bottle of gin tonight.

Thanks
 
P

PCLIVE

By using quotes you are forcing the results to be text. You want them to be
numbers.

=IF(D5>0,150.00,0)

For the cell that contains 150, just format the cell as currency and select
the appropriate Symbol from the dropdown.

HTH,
Paul
 
J

Jim Thomlinson

Change your formula to
=IF(D5>0,150,0)

You will need to format your cells as £. What you have is text and not
numbers. You can not perform calculations on text.
 
T

T. Valko

=IF(D5>0,"£150.00","0")

Remove the quotes from around the numbers:

=IF(D5>0,150,0)

Or:

=(D5>0)*150

To get the cell to display as £150.00, goto Format>Cells>Currency. Select
the desired symbol and number of decimal places.
 

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