+ Reply to Thread
Results 1 to 11 of 11

Formulas don't count merged cells

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Monaco
    MS-Off Ver
    Excel 2010
    Posts
    31

    Formulas don't count merged cells

    Hi there,

    I'm sorry if this is a basic problem - I can't seem to find exactly the solution I'm looking for...

    I want to count the number of times we have sold models manufactured between 1965 and 1980. Unfortunatly, some models have had more than one owner... As soon as we have a one model sold several times, we are using merged cell, but then the formula stops working because of the merged cells (see attached sample document). Hopefully I'm making sense... Can anyone give tips on how to solve this issue?

    Thanks in advance,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Formulas don't count merged cells

    hi,

    the reason that the formula is not working is that in a merged cell,other than the first cell, the remaining have values of 0.

    hence, you would need to enter the formula in C4 as:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Formulas don't count merged cells

    Hi,

    What sidd.iths says is true. If you want a formula that you can simply copy down and which will automatically take care of merged cells for you, you'll need a helper column.

    I've put in the helper column for you, and put in the new formula. This way, everything gets taken care of automatically.

    Don't forget to click the little star to the left of this post if you feel I helped!
    Attached Files Attached Files
    Taming the Excel dragon... www.TheExcelphile.com

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Formulas don't count merged cells

    Personally, the advice is, don't use merged cells.

    I would split them and then use Conditional Formatting to "hide" duplicated entries.

    Split all the cells (model and year). Repeat the model and year in cells A4 and B4. Select cells A2 down to B4. Then select Conditional Formatting. Choose New Rule and "Use a formula ...". The formula is: =A2=A1 (no absolutes) and, in the formatting, choose the same sickly green you have used as the fill colour.

    That should hide any duplicated values.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Formulas don't count merged cells

    I think that TheExcelphile's solution is a neat one and could get you out of a hole ... and it does work if there is a third seller.

    However, I still don't like merged cells and wouldn't use this approach. It must be a real pain to set it up if you have several sellers for one model.

    If you have your "table" and configuration set up correctly, the formatting will be copied automatically when you start entering data on the next blank row. So, nothing to do but type.

    Anyway, two solutions, your choice.

    Regards, TMS

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formulas don't count merged cells

    Never merge cells in a data table it will contribute nothing but grief, as you have found out.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Registered User
    Join Date
    08-10-2011
    Location
    Monaco
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Formulas don't count merged cells

    This is for a colleague, and my first response was exactly the same as everyone here - don't use merged cells. But he insists that he doesn't want to duplicate something else in his file. However, all good advice, and most importantly, it supports what I told him Good to hear different options regardless, and thanks for everyone's input

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Formulas don't count merged cells

    Unfortunately, your colleague is making a basic error in spreadsheet design ... mixing raw data with analysis and presentation. Excel works best with simple tables of data. Given that, you can sort, filter, produce pivot tables and charts ... the world is your lobster.

    But hey, it's his spreadsheet, you've told him why it's a problem, we've supported you and offered some solutions ... it's down to him how he moves forward, or continues to struggle. If it were me, I'd back away quietly.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Registered User
    Join Date
    02-26-2015
    Location
    USA
    MS-Off Ver
    MAC 2011
    Posts
    3

    Re: Formulas don't count merged cells

    Hey guys,

    I've got basically the same problem here and after reading this thread and the responses, I consolidated my data back into single cells. Excel however has continued to ignore my cells i've "unmerged" and won't count them. Can someone help me sort that out?

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Formulas don't count merged cells

    @JoshDR: welcome to the forum ...

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  11. #11
    Registered User
    Join Date
    04-15-2015
    Location
    Karachi
    MS-Off Ver
    2013
    Posts
    1

    Re: Formulas don't count merged cells

    Nice learning

+ 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