Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

conditional formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KSP - 07 May 2008 16:52 GMT
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!
akphidelt - 07 May 2008 17:51 GMT
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.

> 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,
[quoted text clipped - 3 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.