Converting a # into negative if the texts is one or the other

Auditors

New Member
Joined
Nov 5, 2015
Messages
3
Hi all,

I am a beginner Excel user and need some help coming up with the right formula.

data100.10datadataCheck
data110.00datadataReceipt
data50.01datadataWire
data32.21datadataReceipt
data45.77datadataReceipt

<tbody>
</tbody>









If E1 equals "Check" or "Wire" texts, I need B1 to convert to -100.10 (negative #).
E2 does not equal the "Check" or "Wire" texts, so it stays as 110.00.

What formula would you use? Thank you very much.
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
If column B isn't a formula, then you'll need to display the result in another column, else use a macro.
 
Upvote 0
You're right, creating a new column and adding the following code worked:

In cell F1, =B1*if(or(E1="Check",E1="Wire"),-1,1)
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,035
Members
449,414
Latest member
sameri

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