+ Reply to Thread
Results 1 to 12 of 12

Adding info from one cell OR if that cell it's empty, from another

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    Beverly Hills, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Adding info from one cell OR if that cell it's empty, from another

    So, I am compiling a report that has similar information on for example, column A and B.

    Here's what I am trying to do:
    In a separate column, gather the data from column A and if Column A is empty, gather the data from column B.

    Please let me know if you need any more examples.

    Can anyone help me?

    Thank you,

    Thx!!
    Last edited by la_techie; 04-03-2012 at 03:56 PM. Reason: typo

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Adding info from one cell OR if that cell it's empty, from another

    Hi,

    If I've understood what you mean correctly, then =IF(A2="",B2,A2) should do the trick.

  3. #3
    Registered User
    Join Date
    04-03-2012
    Location
    Beverly Hills, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding info from one cell OR if that cell it's empty, from another

    Thank you Spencer101. I tried what you suggested and it doesn't seem to work.
    I added a picture here with an example:

    Basically I need to pull data from column B and if that column is empty, gather the data from column A but not the data from A & B together...I hope this clarifies and thank you again.

    Sample.jpg

  4. #4
    Registered User
    Join Date
    04-03-2012
    Location
    Beverly Hills, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding info from one cell OR if that cell it's empty, from another

    Thank you Spencer101. I tried what you suggested and it doesn't seem to work.
    I added a picture here with an example:

    Basically I need to pull data from column B onto Column C and if column B is empty, gather the data from column A but not the data from A & B together...Also you'll see from the sample that the information is words not number,s if that makes a difference.


    I hope this clarifies and thank you again.

    Attachment 148618
    Last edited by la_techie; 04-03-2012 at 04:15 PM. Reason: adding info

  5. #5
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Adding info from one cell OR if that cell it's empty, from another

    How about flipping it around to =IF(B2="",A2,B2) ?
    Does that do what you need or am I missing the point completely?

    I just tried it using the sample data you provided and it works for me.

    Only thing is it would give you a zero if both A & B are blank.

    You can get around that if you need to....

  6. #6
    Registered User
    Join Date
    04-03-2012
    Location
    Beverly Hills, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding info from one cell OR if that cell it's empty, from another

    Thk u so much, that formula puts a "0" on column C, the one I want to fill with data.
    I need to put the data from B onto C and in case B has nothing in it, put the data from A onto C. By "data" I mean the words

    Thx!!!

  7. #7
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Adding info from one cell OR if that cell it's empty, from another

    Any chance you could send a snapshot of what you want it to look like?

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Adding info from one cell OR if that cell it's empty, from another

    ...Or enen better, upload a sample workbook. Not a picture.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  9. #9
    Registered User
    Join Date
    04-03-2012
    Location
    Beverly Hills, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding info from one cell OR if that cell it's empty, from another

    Thank you guys, here you go.I hope this helps.


    Sample.xlsx

  10. #10
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Adding info from one cell OR if that cell it's empty, from another

    Like this?

    I've added another bit to the formula so you don't get a zero if both A & B are blank (i.e. row 13).

    Let us know if this isn't what you want.


    Sample(1).xlsx

  11. #11
    Registered User
    Join Date
    04-03-2012
    Location
    Beverly Hills, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding info from one cell OR if that cell it's empty, from another

    Well that worked! You people are geniuses...Just in time for my deadline. Thank you SO much you both!!!

  12. #12
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Adding info from one cell OR if that cell it's empty, from another

    Not a problem

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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