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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
=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,214,873
Messages
6,122,029
Members
449,061
Latest member
TheRealJoaquin

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