• 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.

Summing based on a cell's contents. Probably sumif with index/match

Kaloyan

New Member
Hello Chandoo users! This is a sample of the workbook at hand with most of the sensitive data deleted. I'm relatively new to excel and some of the more complicated syntax formulas are still difficult to understand. I'm using Excel 2007 on Windows.

Basically what I need is a formula that sums and/or multiplies (depending on whether it's easier to get done with the pivot table at hand or the small L:O-table) the rows in A:H corresponding to the correct description. The summing has to be done column-by-column, for all cells in a defined column. if I can put it that way, and the result should be 6 cells wide.

There can be more or less cells populated in the L:O columns and they will change at least once per week if not more often. And then the week numbers (Kalendar Woche/KW) themselves are going to change as the weeks pass by. The same goes for the pivot-variant. I really don't even know how pivot tables interact with formulas in regards of how they change cell-values with every drop-down menu.

Thanks in advance.

P.S. I'm using Excel in German, I don't know whether or not the differences are autocorrected when opening the spreadsheet with Excel in English. Those include translated operators (i.e sum - summe, if - wenn etc) and all comma separators are semicolons , -> ; If necessary I can translate everything and post it again.
 
Hi ,

The formulae are translated into English when I open it in my English version , no problems about that.

The problem is in understanding what you want.

1. You have some data in the tab Fzgdatei_aktuell , in the range C1 : H291 , though the last used cell in the worksheet is CI64438.

2. You have another tab Werkzeug , where you have data in several ranges :
  • B2 : I6
  • A9 : I27
  • L11 : O16
and a pivot table in Q11 : R21.

What exactly is to be the output from all of this is not clear. Can you explain ?

For the benefit of others , I am uploading your file here.

Narayan
 

Attachments

  • Sample_German.xlsm
    715.4 KB · Views: 1
Hi ,

The formulae are translated into English when I open it in my English version , no problems about that.

The problem is in understanding what you want.

1. You have some data in the tab Fzgdatei_aktuell , in the range C1 : H291 , though the last used cell in the worksheet is CI64438.

2. You have another tab Werkzeug , where you have data in several ranges :
  • B2 : I6
  • A9 : I27
  • L11 : O16
and a pivot table in Q11 : R21.

What exactly is to be the output from all of this is not clear. Can you explain ?

For the benefit of others , I am uploading your file here.

Narayan

Thank you for uploading the file on the forum servers.
I did a simplification that might help understand my task better.

https://www.dropbox.com/s/q6jpxxzygle4w4v/Sample1.xlsm?dl=0

I don't understand why the Fzgdatei_aktuell sheet is so large, considering most of it is empty. It wasn't created by me. From this tab I pull the G values (orders in the company) based on the BX values (calendar week). This is done in the Werkzeug tab in the L12:O33 range and the pivot-table. Basically the same thing done in two different ways. A10:I27 is a list of static values that need to be input in the formula I need. And the formula has to take the values from a column L:O or the pivot table under Aufbau (whichever is easier to do) check them in A10:A27 and take the C:H values for the corresponding A and sum them column by column.

In its essence it's a tool to check the man-hours needed in every department (TAB, FPL etc) for every week (Kalendar Woche). And the DK_E, WS_M etc are types of orders. I pull all the orders for a set week and then need to sum all the orders' manhours to get the weekly quota.
Hope this helps.
Thanks!
 
Back
Top