How do I get this to ignore text?

crof_s

New Member
Joined
Mar 16, 2018
Messages
6
How would I get this formula to ignore the text in cell C4? I keep getting a #VALUE ! error. I want the formula to just use the numbers in the cell.

=IF(SUM(C4*5+D4)*120%>50,SUM(C4*5)*120%,SUM(C4*5+D4)*120%)

Thanks in advance.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
=IF(SUM(N(C4)*5,D4)*120%>50,(C4*5)*120%,SUM(N(C4)*5,D4)*120%)

Why is there text in C4 which is used in a numerical formula?

The majority of numbers in the column include tax (vat). Cell C4's number does not. I would like to show this on the sheet. Otherwise the total at the end of row 4 will not correspond with the formula. It would show a total WITHOUT vat while the rest of the rows would show a final price WITH vat in the 'totals' column.

Anyway, does it really matter why? I just want it to ignore the text.
 
Upvote 0
The majority of numbers in the column include tax (vat). Cell C4's number does not. I would like to show this on the sheet. Otherwise the total at the end of row 4 will not correspond with the formula. It would show a total WITHOUT vat while the rest of the rows would show a final price WITH vat in the 'totals' column.

Anyway, does it really matter why? I just want it to ignore the text.

It does matter... But why don't you evaluate the suggestion?

=IF(SUM(N(C4)*5,D4)*120%>50,(N(C4)*5)*120%,SUM(N(C4)*5,D4)*120%)
 
Upvote 0
It does matter... But why don't you evaluate the suggestion?

=IF(SUM(N(C4)*5,D4)*120%>50,(N(C4)*5)*120%,SUM(N(C4)*5,D4)*120%)

Nope. For some reason when there is only 4.99 in the C4 cell then my total is fine which is £41.88 when using the formula you just provided. However, once I add the letters in the C4 cell I come up with £11.94?
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,643
Members
452,663
Latest member
MEMEH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top