conditional formatting

K

KSP

I am trying to import categorical data into a spreadsheet. I need the
categorical data to import as numerical values (i.e. white = 1, black = 2,
hispanic = 3, etc.)
Is there a way to do this using conditional formatting? If not, please offer
a different suggestion.

Thanks!
 
A

akphidelt

Nope, theres nothing you really can do with conditional formatting for this.
The only thing I can think of is just import the data, then in a new column
write out the formula to change those text values to numbers... like

If(A1="white",1,If(A1="black",2,etc

or you can put the numerical values next to the colors and use vlookup up,
such as

Vlookup(A1,array,2,FALSE)

Where the array is the list of colors and there values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top