IF And OR help???

wisemank

Board Regular
Joined
Jun 21, 2010
Messages
129
Hello to all,
I would like to convert data from a numerical value or values to a text value or string.

Column A are the X axis numbers, Column B is Y axis values and column C are the Z axis values. Based on the value I want to declare it as the Axis(s).

The values in all columns are predictable and always a value of either 0.0, .50 or 1.0. So I am looking to convert the following examples:

A B C D

0.50 1.00 0.00 "XY"
0.50 1.00 0.00 "XY"
0.00 1.00 0.50 "YZ"
0.00 1.00 0.00 "Y"
0.00 1.00 0.00 "Y"
0.50 1.00 0.50 "XYZ"
0.00 1.00 0.00 "Y"

I looked to do an "IF(And" statement, but it was around 9 conditions or so...Any ideas for a better way?

Thanks in advanced
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hello, the best that I came up with is to add three columns between C and D.
Cell D1 =IF(A1>0,"X","")
Cell E1 =IF(B1>0,"Y","")
Cell F1 =IF(C1>0,"Z","")
Cell G1 =D1&E1&F1
 
Upvote 0
Copy D1 down.
Excel Workbook
ABCD
10.510XY
20.510XY
3010.5YZ
4010Y
5010Y
60.510.5XYZ
7010Y
Sheet6
 
Upvote 0

Forum statistics

Threads
1,215,483
Messages
6,125,063
Members
449,206
Latest member
Healthydogs

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