If cell contains "+" add 0.33

Fazila

Board Regular
Joined
Nov 19, 2014
Messages
163
anyone able to help me with the above. I have a column which contains numbers with + or - i.e. 4+ or -4. I want to convert these numbers i.e. 4+ would equal 4.33 and -4 would equal 3.67 - any ideas on how I can achieve this? If the cell contains a whole number i.e. 4 then the formula is to return 4.

I've tried if(isnumber(search("+",a2)),sum(a2+0.33),a2) but get a #value error.

Thanks

Fazila
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
try

=IF(A2<0,A2+0.33,IFERROR(INT(A2),SUBSTITUTE(A2,"+","")+0.33))
 
Last edited:
Upvote 0
Not 100% sure on the conditions but maybe this:

=IF(AND(ISNUMBER(A2), A2>=0), A2, IF(OR(ISNUMBER(SEARCH("+",A2)), ISNUMBER(SEARCH("-", A2))),SUBSTITUTE(A2, "+", "")+0.33, ""))
 
Last edited:
Upvote 0
Perhaps.

=IF(ISNUMBER(SEARCH("+",A2)),SUBSTITUTE(A2,"+","")+0.33,IF(ISNUMBER(SEARCH("-",A2)),SUBSTITUTE(A2,"-","")-0.33,A2))
 
Upvote 0
it works for me


Book1
AB
24+4.33
3-4-3.67
444
Sheet4
Cell Formulas
RangeFormula
B2=IF(A2<0,A2+0.33,IFERROR(INT(A2),SUBSTITUTE(A2,"+","")+0.33))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,647
Messages
6,126,005
Members
449,280
Latest member
Miahr

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