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
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.
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
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)
لدي عمود يحتوي على الكثير من الأرقام، أريد أن أحصل على مجموع هذه الأرقام
المشكلة أن هذا العمود يحتوي على بعض الخلايا المدمجة، فأود في أن أتخطي هذه الخلايا المدمجة عند استخراج المجموع
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.
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
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))
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks