+ Reply to Thread
Results 1 to 5 of 5

Join columns

  1. #1
    Registered User
    Join Date
    04-16-2010
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Join columns

    Hi,

    I have a sheet that is a calendar of activities, the rows are the dates and the columns the plots where the activities are carried out. The colums can be plots or subplots. My objective is to copy the activities of the plot into the colums of their correspondent subplots (keeping the activities that are only carried out in the subplot).

    I have written a formula that works in a small test I did , but when I apply it to the calendar it does not work. I don't understand why.

    Attached is the file. As example;
    The column I is information of the plot
    The column J is information of the subplot
    I want to join them in the colum O. If you go, for example, to the cell O978, I get FALSE, instead of "hac_rk"


    This is the formula:
    =IF(ISBLANK(I978);J978;IF(OR(ISBLANK(J978);I978=J978);I978;FALSE))

    The conditions are:
    - If the plot is blank, nothing is done to the subplot
    - If the plot is not blank and the subplot is blank or has the same information as the plot, we copy the information of the plot.
    - If neither of them are blank and they are not the same, we get FALSE

    The problem is that now I get FALSE when the subplot is blank and the plot is not.

    Thanks a lot!
    Attached Files Attached Files
    Last edited by MFT; 04-27-2010 at 10:03 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Join columns

    Not sure if you are importing these values or not but it looks like there is some sort of hidden character in columns J and I rather than being blank. Select I and do a text to Columns and click FINISH. Do the same with J. You will now have 0's rather than Blanks in Column O but everything matches up. Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-16-2010
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Join columns

    Thanks for your answer!

    It has worked, but I don't understand why. What have I done applying a text to columns?. What could the hidden data have been and where did it go?.

    How can I remove the 0 and convert them to blank cells??

    Thanks a lot!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Join columns

    One way to remove the zeros is to go to your Excel Options> Advanced>"Display Options for this worksheet" and uncheck "show a zero in cells that have a zero value" Will that work for you?

    When you do a "text to columns" it defaults to General formatting and causes Excel to take another look at that column and re-evaluate what's in there. For example, if a number was entered as text, Excel will re-evaluate and make it a number again. In your case, Excel re-evaluated and said "Hmmm, there's really nothing in these cells, I'll put in a zero." Of course that's the technical explaination. One of the other gurus or mods might be able to give you a better explaination.
    Last edited by ChemistB; 04-27-2010 at 08:40 AM.

  5. #5
    Registered User
    Join Date
    04-16-2010
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Join columns

    It does work for me.

    Thanks!

+ 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