number_cruncher
New Member
- Joined
- Sep 2, 2016
- Messages
- 6
I am using the table tblSummary below to sum data from other tables in the workbook. All table names are in a named range called nrSheetParameters. Some of the tables have additional columns between each month so [sum range] criteria needs to be the same column name in each table as the column the formula is in. My formula below is working and accurate in the January column, but when i copy it across to the other columns the data from the dat in the Jan column repeats.
FORMULA IN JAN COLUMN =SUMPRODUCT(SUMIF(INDIRECT(nrSheetParameters&"[PRODUCTS]"),tblSummary[@[PRODUCTS]:[PRODUCTS]],INDIRECT(nrSheetParameters&"["&UPPER(TEXT(MONTH(DATEVALUE(tblSummary[[#Headers],[JAN]] & "1")),"MMM"))&"]")))
FORMULA IN FEB COLUMN: =SUMPRODUCT(SUMIF(INDIRECT(nrSheetParameters&"[PRODUCTS]"),tblSummary[@[PRODUCTS]:[PRODUCTS]],INDIRECT(nrSheetParameters&"["&UPPER(TEXT(MONTH(DATEVALUE(tblSummary[[#Headers],[FEB]] & "1")),"MMM"))&"]")))
Why is this happening?? Thanks in advance for any help you can offer Cheers!
I am using Microsoft Excel for Mac v16.67
table name: tblSummary
FORMULA IN JAN COLUMN =SUMPRODUCT(SUMIF(INDIRECT(nrSheetParameters&"[PRODUCTS]"),tblSummary[@[PRODUCTS]:[PRODUCTS]],INDIRECT(nrSheetParameters&"["&UPPER(TEXT(MONTH(DATEVALUE(tblSummary[[#Headers],[JAN]] & "1")),"MMM"))&"]")))
FORMULA IN FEB COLUMN: =SUMPRODUCT(SUMIF(INDIRECT(nrSheetParameters&"[PRODUCTS]"),tblSummary[@[PRODUCTS]:[PRODUCTS]],INDIRECT(nrSheetParameters&"["&UPPER(TEXT(MONTH(DATEVALUE(tblSummary[[#Headers],[FEB]] & "1")),"MMM"))&"]")))
Why is this happening?? Thanks in advance for any help you can offer Cheers!
I am using Microsoft Excel for Mac v16.67
table name: tblSummary
PRODUCTS | JAN | FEB | MAR | APR | MAY | JUN | JUL |
CRATES | 510 | 510 | 510 | 510 | 510 | 510 | 510 |
CRATE WHEELS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
4 WHEELERS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
PANEL CARTS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
SPEED PK | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
E-CART | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
LIBRARY CRT | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
D- LIBRARY | 720 | 720 | 720 | 720 | 720 | 720 | 720 |
COOLERS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
J-BARS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
APPLIANCE DOLLY | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
PIANO BOARDS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
SAFE JACKS (SETS) | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
LADDERS | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
KICK BACK DOLLY | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
SCALE | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
POLY NIGHT (FT) | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
PALLET JACK | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
LIFT TABLE | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
SILVERWARE | 0 | 0 | 0 | 0 | 0 | 0 | 0 |