Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mcrae
 
Posts: n/a
Default something more efficient that =IF, and sytax questions


I have a column with numerical values, representing which choice a
person chose on a questionaire. I want to create a new column which
will look at the old column and do =IF(C2=1,"Yes", (IF(C2=2, "No",
"Perhaps")))

the problem is for some questions i have 12 different answers, so i was
wondering if there was a faster way to do it?

another problem, some of my answers are '0 - 1' (question is how many
hours do you watch tv per day). I don't know how to get excel to
actually display 0 - 1, it will either display some large number, or a
date.

thanks!


--
mcrae
------------------------------------------------------------------------
mcrae's Profile: http://www.excelforum.com/member.php...o&userid=30252
View this thread: http://www.excelforum.com/showthread...hreadid=528815

  #2   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default something more efficient that =IF, and sytax questions

You could create a lookup table, with a table for group of answers. So if
there are three choice for your first question you could put a lookup table
in Sheet 2 that looks like this:

A B
1 Yes
2 No
3 Perhaps

Name the range Question1 and the vlookup would look something like this:

=VLOOKUP(A1, Question1, 2)

Where A1 is the response in sheet 1
Question1 is your lookup table for question 1
and 2 is the column to get the return value from.
--
Kevin Backmann


"mcrae" wrote:


I have a column with numerical values, representing which choice a
person chose on a questionaire. I want to create a new column which
will look at the old column and do =IF(C2=1,"Yes", (IF(C2=2, "No",
"Perhaps")))

the problem is for some questions i have 12 different answers, so i was
wondering if there was a faster way to do it?

another problem, some of my answers are '0 - 1' (question is how many
hours do you watch tv per day). I don't know how to get excel to
actually display 0 - 1, it will either display some large number, or a
date.

thanks!


--
mcrae
------------------------------------------------------------------------
mcrae's Profile: http://www.excelforum.com/member.php...o&userid=30252
View this thread: http://www.excelforum.com/showthread...hreadid=528815


  #3   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default something more efficient that =IF, and sytax questions

I just read your second question, and formatting the cell as TEXT format
before should correct this problem.
--
Kevin Backmann


"mcrae" wrote:


I have a column with numerical values, representing which choice a
person chose on a questionaire. I want to create a new column which
will look at the old column and do =IF(C2=1,"Yes", (IF(C2=2, "No",
"Perhaps")))

the problem is for some questions i have 12 different answers, so i was
wondering if there was a faster way to do it?

another problem, some of my answers are '0 - 1' (question is how many
hours do you watch tv per day). I don't know how to get excel to
actually display 0 - 1, it will either display some large number, or a
date.

thanks!


--
mcrae
------------------------------------------------------------------------
mcrae's Profile: http://www.excelforum.com/member.php...o&userid=30252
View this thread: http://www.excelforum.com/showthread...hreadid=528815


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"