+ Reply to Thread
Results 1 to 6 of 6

Compare, and then insert or replace value

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Compare, and then insert or replace value

    I want to compare Columns A and B and Insert value in C.

    So if Column A is null, then place value of column B in C, otherwise place Value of A in C.

    Having trouble doing this.

    Any ideas. Appreciate any help!!

  2. #2
    Registered User
    Join Date
    11-16-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Compare, and then insert or replace value

    Please Login or Register  to view this content.
    Place it in C1, drag down.
    Last edited by JSallen; 12-11-2012 at 02:48 PM.

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Re: Compare, and then insert or replace value

    Thank you so much for the quick reply.

    I tried doing it but it didn't work properly. It still gave me blank and where the values in A were not null, it copied over values from B.

  4. #4
    Registered User
    Join Date
    12-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Re: Compare, and then insert or replace value

    This is what is happening now. It copies over if A is not null but it does not copy over when A is null. Is there a reason why?

  5. #5
    Registered User
    Join Date
    11-16-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Compare, and then insert or replace value

    The cell may not be completely blank. In a blank cell, type =ISBLANK(A1). Assuming A1 is actually blank, when you hit Enter the cell should read "TRUE".

    If it returns "FALSE", then you have a space or apostrophe or something in the seemingly blank cell.
    Last edited by JSallen; 12-11-2012 at 03:05 PM.

  6. #6
    Registered User
    Join Date
    12-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2012
    Posts
    3

    Re: Compare, and then insert or replace value

    I got it to work. Thank you so much. Apprantly I had to say IStext, and it worked. Not sure why.

  7. #7
    Registered User
    Join Date
    11-16-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Compare, and then insert or replace value

    Yep, guessing you have a space in that cell then. If you want to cover yourself in case some of the "blank" cells are, indeed, truly blank, use
    Please Login or Register  to view this content.

+ 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