+ Reply to Thread
Results 1 to 9 of 9

Returning the Value of a Merged Cell

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    othseco correct
    MS-Off Ver
    Excel 2010
    Posts
    37

    Returning the Value of a Merged Cell

    So I have a colum of data 100 lines. Some of the cells are merged together in the collum some are not. I need a formula to returtn the value of the cell to the left in the cell to the right. If the cell to the left is merged. I need the merged value in all the cells to the right of the merged cells.

    See example.
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Returning the Value of a Merged Cell

    In B3 put this formula and drag down
    =IF(A3=0,B2,A3)

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    othseco correct
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Returning the Value of a Merged Cell

    That only works if two cells are merged. Some sales may have 9 merged cells other could have two. I need a formula that works for no matter how many merged cells there are the the left. Also there are instances where there are two sets of merged cells next to each other. So if you pull the value from above for the 1st group when you hit the next set of merged without a break it will return the value for the first set not the second. Also I need to account that some sales are merged and blank. If a cell is merged and blank it need to stay blank on the colum on the right.

    Here is an example with your formula.
    Attached Images Attached Images
    Last edited by frisbie17; 09-10-2012 at 09:33 AM.

  4. #4
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Returning the Value of a Merged Cell

    works fine for me, try it out.
    Its B2 in the middle, not A2

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    othseco correct
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Returning the Value of a Merged Cell

    Edited. If a merged cell is blank it does not work. See my edited post above with pic. Sorry I was editing while you posted this.

  6. #6
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Returning the Value of a Merged Cell

    oh okay
    use this one
    =IF(ISBLANK(A3), " ", IF(A3=0, B2, A3))

    I jumped the gun, gimme a second

  7. #7
    Registered User
    Join Date
    06-27-2012
    Location
    othseco correct
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Returning the Value of a Merged Cell

    That does not quite work either. Here is what that returns.
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    06-27-2012
    Location
    othseco correct
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Returning the Value of a Merged Cell

    Let me know. It is not quite simple. I struggled with pulling the cell above and a variety of nested ifs. Problem comes up when blank merged cells followed filled merged cells. Also the merged cells could be 2 cells or 10. or anything inbetween.

  9. #9
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Returning the Value of a Merged Cell

    Hmm yeah im not sure either. You might need to transfer this post to the vba forum

+ 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