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.

[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD]data[/TD]
[TD]100.10[/TD]
[TD]data[/TD]
[TD]data[/TD]
[TD]Check[/TD]
[/TR]
[TR]
[TD]data[/TD]
[TD]110.00[/TD]
[TD]data[/TD]
[TD]data[/TD]
[TD]Receipt[/TD]
[/TR]
[TR]
[TD]data[/TD]
[TD]50.01[/TD]
[TD]data[/TD]
[TD]data[/TD]
[TD]Wire[/TD]
[/TR]
[TR]
[TD]data[/TD]
[TD]32.21[/TD]
[TD]data[/TD]
[TD]data[/TD]
[TD]Receipt[/TD]
[/TR]
[TR]
[TD]data[/TD]
[TD]45.77[/TD]
[TD]data[/TD]
[TD]data[/TD]
[TD]Receipt[/TD]
[/TR]
</tbody>[/TABLE]









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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

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