+ Reply to Thread
Results 1 to 5 of 5

Working out if cell is merged and returning value in another cell

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    Townsville
    MS-Off Ver
    Excel 2010
    Posts
    38

    Working out if cell is merged and returning value in another cell

    All,

    Another head scratcher for me..

    So this is what I'm trying to do, if B3 is merged return Yes in L3 and if it isn't return No, then move on to B4 and return the answer in L4 and so on..



    Thanks :D

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Working out if cell is merged and returning value in another cell

    Hi amoxia,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Working out if cell is merged and returning value in another cell

    You might use this UDF

    Please Login or Register  to view this content.
    and the formula =IF(IsMerged(B3), "Yes", "No") in L3


    But it would be best to avoid merged cells altogether. CenterAcrossSelection is much more friendly (to the developer) than merged cells.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    08-22-2012
    Location
    Townsville
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Working out if cell is merged and returning value in another cell

    Thanks guys - Trebor worked awesomely!

    Yes I would love to avoid merge cells but the boss wants what the boss wants! thanks again!!

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Working out if cell is merged and returning value in another cell

    Thanks guys - Trebor worked awesomely!
    Thanks for the feedback and you're welcome

+ 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. Limit merged cell data; Place excess into next merged cell down
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 10:35 PM
  2. [SOLVED] Sum formula returning ZERO in one cell, working everywhere else
    By crayallred in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-22-2013, 11:59 AM
  3. Returning the Value of a Merged Cell
    By frisbie17 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-10-2012, 09:48 AM
  4. Replies: 7
    Last Post: 07-09-2012, 09:13 AM
  5. [SOLVED] .find with merged cell not working
    By Sunil Patel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2005, 04:05 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