Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default replacing numbers in a cell

How to replace numbers in a cell eg if 1 to 3, if 3 to 2, if 2 to 3. Trying
to reverse score for questionnaire. Possible to create a formula instead of
doing manually?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default replacing numbers in a cell

Create a column (later to be hidden) next to the data u want to change. In
this new column, put your =IF(A1=1,3,(IF(A1=3,2,(IF(A1=2,3))))). This should
give you the correct numbers. Then you can copy the column and paste
specuial (values only) it in your original column. Hide your newly created
column.

You can next up to 7 if then statements...if more than than you will need to
do VLookup or something different.
--
-Kaman
The IT dept people call before they call the real IT dept.


"catspore" wrote:

How to replace numbers in a cell eg if 1 to 3, if 3 to 2, if 2 to 3. Trying
to reverse score for questionnaire. Possible to create a formula instead of
doing manually?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default replacing numbers in a cell

Try this:

=Lookup(A1,{1,2,3},{3,3,2}) or

Enter

=Sum(If(A1={1,2,3},{3,3,2})) or

Enter

=Vlookup(A1,{1,3;2,3;3,2},2,0)

Enter

Hope this helps.

--
Santipong

catspore เขียน:
How to replace numbers in a cell eg if 1 to 3, if 3 to 2, if 2 to 3. Trying
to reverse score for questionnaire. Possible to create a formula instead of
doing manually?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default replacing numbers in a cell

=MAX(A1,3)-(A1=3)


"catspore" wrote:

How to replace numbers in a cell eg if 1 to 3, if 3 to 2, if 2 to 3. Trying
to reverse score for questionnaire. Possible to create a formula instead of
doing manually?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default replacing numbers in a cell

Try:

=Lookup(A1,{1,2,3},{3,3,2}) or

=Vlookup(A1,{1,3;2,3;3,2},2,0) or

=Sum(if(A1={1,2,3},{3,3,2}))

Enter

HTH
--
Santipong


catspore เขียน:
How to replace numbers in a cell eg if 1 to 3, if 3 to 2, if 2 to 3. Trying
to reverse score for questionnaire. Possible to create a formula instead of
doing manually?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default replacing numbers in a cell

Try:

=Lookup(A1,{1,2,3},{3,3,2}) or

=Vlookup(A1,{1,3;2,3;3,2},2,0) or

=Sum(if(A1={1,2,3},{3,3,2}))

Enter

HTH
--
Santipong


catspore เขียน:
How to replace numbers in a cell eg if 1 to 3, if 3 to 2, if 2 to 3. Trying
to reverse score for questionnaire. Possible to create a formula instead of
doing manually?


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
can numbers be assigned to values, replacing values for numbers Cossloffe Excel Discussion (Misc queries) 2 June 3rd 06 10:22 AM
Replacing specific numbers jezzica85 Excel Discussion (Misc queries) 2 May 5th 06 12:16 AM
Replacing a random string of 5 numbers Katie59 Excel Discussion (Misc queries) 5 March 23rd 06 09:12 PM
Help with replacing items within a cell Tchiyuka Cornelius Excel Worksheet Functions 1 February 16th 06 12:52 AM
using treater than and replacing numbers mja Excel Worksheet Functions 1 March 23rd 05 05:59 PM


All times are GMT +1. The time now is 06:44 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"