+ Reply to Thread
Results 1 to 2 of 2

changing the entries on one column based on another column

  1. #1
    Registered User
    Join Date
    06-12-2014
    Posts
    1

    changing the entries on one column based on another column

    I'm a bit of an Excel newbie, so I apologize if this is covered a lot. I have some survey results, imported into Excel in csv format. In one column, I have the results to the question "What is your diagnosis?" with numerical answers (it's multiple choice). In the next column, I have the results of the question "How confident are you of your diagnosis," also with numerical results (scale of 1-10).

    Some respondents answered "I don't know" (9) as the diagnosis, and then answered "Very confident" (10) as their confidence level. While it is correct to say that one is very confident that one does not know the answer, for the purposes of this survey, this needs to be recoded as low confidence that they do know the answer. Thus, I want to change all of the entries in the second column to low confidence (1) if the respondent answered "I don't know" in the diagnosis column.

    So, is there a command or function that says "If the entry in column A == 9, then make corresponding entrty in column B=1. Otherwise leave it alone. "

    Thanks!

    billo

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: changing the entries on one column based on another column

    The most straightforward way to do this, for a one-time change, is to add a new column. Assuming your data is in A and B, then you can use this formula in column C:

    =IF(A1=9,1,B1)

    I used 1 as the starting row, but if you have column headers your data may start in row 2. Copy the formula down. If you want to use this new data to overwrite column B, you can Copy the entire column C, then Paste Values into column B. Then delete column C. (For some reason in my prototype, Cut didn't allow a Paste Values.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sum daily changing entries in a column..but return the result within the same column.
    By 59amcad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2014, 10:31 AM
  2. Sum of column entries based on value in other column
    By chiragvaya in forum Excel General
    Replies: 3
    Last Post: 12-27-2012, 06:20 AM
  3. Replies: 4
    Last Post: 08-01-2012, 08:55 AM
  4. Autofill Column B based on Column A entries
    By cprickett in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2009, 10:23 AM
  5. function to sum a column's entries based on another column
    By brickc1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-20-2009, 08:02 PM

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