+ Reply to Thread
Results 1 to 10 of 10

Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في 

  1. #1
    Registered User
    Join Date
    01-16-2024
    Location
    KSA
    MS-Off Ver
    2016
    Posts
    4

    Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في 

    Hello guys,
    Firstly, my English is not that powerful that's why I posted my post in this section

    however, how can I get rid of merged cells in my sums? No VBA Please

    I attached the file to show you what I mean
    Demo - Copy.xlsx
    Last edited by Dreamy World; 01-16-2024 at 06:27 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    I do not understand. Please try to explain again (even in arabic, as we can use Google translate) BUT ALSO add expected answers to your file (make it with FEWER rows)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    01-16-2024
    Location
    KSA
    MS-Off Ver
    2016
    Posts
    4

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    Quote Originally Posted by Glenn Kennedy View Post
    I do not understand. Please try to explain again (even in arabic, as we can use Google translate) BUT ALSO add expected answers to your file (make it with FEWER rows)
    Thank you very much Mr. Glenn for having fun with my thread , I'm very glad for that

    I have a column with numbers, and simply I need sum (total) of them, but the problem is that the column contains some merged cells, so I want to skit these merged cells in my sum (total)

    لدي عمود يحتوي على الكثير من الأرقام، أريد أن أحصل على مجموع هذه الأرقام
    المشكلة أن هذا العمود يحتوي على بعض الخلايا المدمجة، فأود في أن أتخطي هذه الخلايا المدمجة عند استخراج المجموع

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    The simplest way would be to not used merged cells in the 1st place - we always recommend avoiding them if at all possible, they cause all sorts of problems with formulas and code.

    If you MUST use merged cells, you can manually adjust your formula...
    =SUM(A2:B65)
    adjusted to
    =SUM(A2:A65)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    Ford, that doesn't work. in a merged cell, the values are "stored" in the left hand cell. So all values are in column A, whether in a merged cell or not.

    In your sample, the values in the merged cells are 1 trhough to 31. If that is REALLY the case, you can use:

    =SUM(A$2:A$66)-SUM(ROW($1:$31))
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    If the intent is to add the 1 to 31 values (496 total) plus the stand-alone values in A59, A60 etc(1781 total), then the =SUM(A2:A65) does work.

    If the intent is to just add the stand-alone, then you are correct, =SUM(A2:A65) wont work.

    I took it the OP wanted to sum all visible values - I guess time will tell

  8. #8
    Registered User
    Join Date
    01-16-2024
    Location
    KSA
    MS-Off Ver
    2016
    Posts
    4

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    Quote Originally Posted by AliGW View Post
    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    OH!
    Sure, check now

  9. #9
    Registered User
    Join Date
    01-16-2024
    Location
    KSA
    MS-Off Ver
    2016
    Posts
    4

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    Quote Originally Posted by Glenn Kennedy View Post
    Ford, that doesn't work. in a merged cell, the values are "stored" in the left hand cell. So all values are in column A, whether in a merged cell or not.

    In your sample, the values in the merged cells are 1 trhough to 31. If that is REALLY the case, you can use:

    =SUM(A$2:A$66)-SUM(ROW($1:$31))
    uncountable thanks for your valuable discussion, I appreciate it both of you
    FDibbins
    Glenn

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Question: How to Skip Merged Cells in SUM | سؤال: كيف نتخطى الخلايا المدمجة في

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Replies: 1
    Last Post: 08-22-2019, 04:16 AM
  2. تحويل الأرقام إلى العربية vba
    By MohsenAlyafei in forum Non English Excel
    Replies: 2
    Last Post: 07-15-2019, 06:01 AM
  3. Replies: 1
    Last Post: 03-28-2019, 06:00 AM
  4. Replies: 1
    Last Post: 03-28-2019, 05:54 AM
  5. Replies: 1
    Last Post: 03-28-2019, 05:53 AM
  6. Replies: 1
    Last Post: 03-28-2019, 05:44 AM
  7. ممكن المساعدة يا اخواني
    By ghostindia in forum Excel General
    Replies: 0
    Last Post: 06-27-2012, 03:53 AM

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