• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Merged Cells

Kurt Hili

New Member
Hi all,

New to this and not sure whether this question has been answered before. Sorry if it has.

In the attached sheet, what I need to do is have a sum of Column 'A' in Column 'B'. This should sum up all adjacent and matching values in column 'A'. So for example, by means of a formula, B2:B9 = 3,222. B10:17 = 3,349 and B18:B30 = 7,224 and so on.

Second step is for column 'C' to add matching values in Columns 'D', 'E, and 'F'. Therefore, C3:C9 = 1,200, C10:C17 = 12,000 and C18:C30 = 3,000 and so on.

Is this even possible?

Thanks in advance.
Kurt
 

Attachments

  • Merged Cells.xlsx
    21.3 KB · Views: 4
Hi,

Welcome to the forum..

Quick Question: Are there any more columns or fields associated to the data..If so can you share the sample please.
 
Thank you for your reply...

To answer your question; Yes, there could be descriptive fields as per attached.

Thanks
Kurt
 

Attachments

  • Merged Cells 2.xlsx
    10.7 KB · Views: 3
Try.............

upload_2018-5-23_23-50-49.png

1] In Column D "Sum of Name" D2, enter formula :

=SUMPRODUCT((LOOKUP(ROW(B$2:B$59),ROW(B$2:B$59)/(B$2:B$59<>""),B$2:B$59)=T(IF(1,INDIRECT("R"&ROW()&"C2",0))))*C$2:C$59)

Then,

Select D2 >> In the Formula Bar, use mouse pointer highlighted the formula >> Mouse right click, choose "Copy" >> Goto below merged cells, and "Paste" one by one.

2] In Column E "Sum of Col F:H" E2, enter formula :

=SUM(INDIRECT("R"&ROW()&"C6:C8",0))

Then do the Copy and Paste to the below cells as per above [1]

3] See attached file

Regards
Bosco
 

Attachments

  • SumMergedCells.xlsx
    15.1 KB · Views: 5
Back
Top