+ Reply to Thread
Results 1 to 6 of 6

Condition based replacements of Cells with other values

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Condition based replacements of Cells with other values

    Hi ,

    I have attached a sample CSAT survey file -

    Column B to G has the ratings on each questions , now I basically want to covert all 1's to 5's , 2's to 4's , 4's to 2's , 5's to 1's . Please advice .


    Tool assumes that "1" is Verysatisfied ,"2" is Satisfied , "3" is Neutral , "4" is Dissatisfied , "5" is Very dissatisfied .. However my calculation is totally reverse . So I had to change it .

    Another piece of information which might be helpful if a script is being written for this ... This is a sample file and my actual file will have additional columns in it , which I have deleted in this ..
    Attached Files Attached Files
    Last edited by vamshi57; 09-30-2010 at 06:15 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Condition based replacements of Cells with other values

    Not sure why you need to replace - could not just reverse the logic of your summary calcs ?

    If you need to replace then it would be best to first run an Edit -> Replace for each value (1 to 5 [ignoring 3]) replacing the digit with a separate character: eg 1 to @ and 2 to ^ etc...

    Once complete run a subsequent Edit -> Replace for each value converting @ to 5, ^ to 4 etc...

    (avoid using *, ~, ? characters)
    Last edited by DonkeyOte; 09-30-2010 at 04:55 PM. Reason: edit: revised based on wildcards !

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: Condition based replacements of Cells with other values

    This is exactly what I have been doing .. but its more of a manual work as I need to do 8 iterations to complete the cycle . Once I get the data I'm atleast spending 4-5 min replacing the cells before I create the pivots out of it .

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Condition based replacements of Cells with other values

    You can replicate the process in Code, in basic terms:

    Please Login or Register  to view this content.
    above is geared to run against the active selection at run-time

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Condition based replacements of Cells with other values

    A quicker alternative might be:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: Condition based replacements of Cells with other values

    Amazing .. This is exactly what I was looking for . Thank you so much .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1