Positive or Negative Value in a Cell if a Nearby Cell is One of Two Values

MntnrMark

Board Regular
Joined
Dec 18, 2012
Messages
57
I have a column, say its Column C, that has multiple rows showing either a "P" (for Positive) or "N" (for Negative) impact on endeavors described in the various Rows of Column B.

I then type a numerical value between 1 and 5 in Column D to reflect the severity/lack thereof of the impact.

I want the value in Column D to be a positive value if "P" shows up to the left in Column C, or a negative value (meaning it displays as -1, -2, -3, etc.) if "N" shows up to the left in Column C.

What's the easiest way to do that? I did it but in a very cumbersome way and would like to simplify the method.

Thanks.
 

MntnrMark

Board Regular
Joined
Dec 18, 2012
Messages
57
PERFECT! THANK YOU! (In the future I'll give the EXACT row and column designations I'm using.)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
65,443
Office Version
  1. 365
Platform
  1. Windows
You are welcome.
Sorry for the delay in responding, but I was out most of the day.
 

Forum statistics

Threads
1,175,597
Messages
5,898,372
Members
434,708
Latest member
matthewdrhodes

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
Top