What is the Excel Forumula To Create a Letter For Both Minus Numbers and Pluse Numbers?

zotah

Board Regular
Joined
Feb 1, 2014
Messages
89
What is the Excel Formula To Create a Letter To Represent a Minus Number and another Letter To Create a Plus Number and Another Letter to Create a zero (0) Value or No number.

So Let's say I have

4 and I want this Positive 4 to be translated into another cell as the Letter (R) for example

-3 and I want this negative number to be translated into another cell as the Letter (G) for example

8 and I want this Positive 8 to be translated into another cell as the Letter (R) for example

0 (zero) and I want the (0) (zero) to be translated into another cell as the Letter (Q) for example

-12 and I want this negative number to be tranlated into another cell as the Letter (G) for example

So no matter what the number is I need to know if there is a formula that I can use to tranlate any 3 types of numbers (Negative Number for One Letter) (Positive Numbers for One Letter) and (All "0" only Numbers to be One Letter)


Thus giving one of the 3 answers of (R) (Q) or (G) depending upon whether this digit is Positive, Negative or (zero)

So if the number is -158 or -56 or -985 or -2 (All these negative numbers would all return a result of the letter G

and other number of any kind that are all possitive numbers like 57 or 225 or 37 or even the number 6 will a return a result of the letter R in a separate cell where the formula is located and

Lastly if the number is only (0) zero (which really isn't a number at all) comes up I need it to return a result of the letter Q

Do you know of a simple formula I can use to tranlate all these 3 types of numbers all in the same one formula that I can slide the forumula down a list of any columns figuring out every single number all the way down hundreds of cells.

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
how about,
Code:
=LOOKUP(SIGN(A1),{-1,0,1},{"G","Q","R"})
=CHOOSE(SIGN(A1)+2,"G","Q","R")
=IF(A1<0,"G",IF(A1>0,"R","Q"))
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,138
Members
452,381
Latest member
Nova88

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