Magoosball
Board Regular
- Joined
- Jun 4, 2017
- Messages
- 70
- Office Version
- 365
I have a spreadsheet with 2 separate sheets set up as follows
List
[TABLE="width: 500"]
[TR]
[TD]Department
[/TD]
[TD]Shift[/TD]
[TD]State[/TD]
[/TR]
[TR]
[TD]Home Health[/TD]
[TD]Nights
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]Nights[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sporting Goods[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Grocery[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]Nights[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Furniture[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pets[/TD]
[TD]Nights[/TD]
[TD][/TD]
[/TR]
[/TABLE]
The goal of this is to look at the summary sheet below and populate the State column with the lowest value that matches the department and shift.
Summary sheet:
[TABLE="width: 500"]
[TR]
[TD]Department
[/TD]
[TD]Alabama[/TD]
[TD]Alabama[/TD]
[TD]Alaska[/TD]
[TD]Alaska[/TD]
[TD]Maryland[/TD]
[TD]Maryland[/TD]
[TD]Maine[/TD]
[TD]Maine[/TD]
[/TR]
[TR]
[TD]Pets
[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[/TR]
[TR]
[TD]Grocery[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]34[/TD]
[TD]8[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Garden[/TD]
[TD]5[/TD]
[TD]879[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]62[/TD]
[TD]154[/TD]
[TD]87[/TD]
[TD]52[/TD]
[/TR]
[TR]
[TD]Home Health[/TD]
[TD]1567[/TD]
[TD]79[/TD]
[TD]712[/TD]
[TD]3[/TD]
[TD]456[/TD]
[TD]78[/TD]
[TD]152[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Cosmetics[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]65[/TD]
[TD]79[/TD]
[TD]8[/TD]
[TD]4891[/TD]
[TD]54[/TD]
[TD]568[/TD]
[/TR]
[TR]
[TD]Furniture[/TD]
[TD]45[/TD]
[TD]45[/TD]
[TD]878[/TD]
[TD]9[/TD]
[TD]8[/TD]
[TD]455[/TD]
[TD]657[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]126[/TD]
[TD]489[/TD]
[TD]897[/TD]
[TD]7891[/TD]
[TD]324[/TD]
[TD]348[/TD]
[TD]48[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Sporting Goods[/TD]
[TD]87[/TD]
[TD]98[/TD]
[TD]7[/TD]
[TD]1[/TD]
[TD]56[/TD]
[TD]4897[/TD]
[TD]97[/TD]
[TD]321[/TD]
[/TR]
[/TABLE]
These aren't numbers on the summary sheet, they are a countifs statement taht counts the state column (C) from the summary sheet for that specific unit and shift. For example there are a count of 456 "Maryland" in column C on the summary sheet.
When a state is populated in the "List" Spreadsheet the formulas on the summary tab would add 1 to that department/state/Day field respectively. Therefor the next item in the list could be impacted from the previous item on the list.
Is this possible with a formula in the State cells on the List spreadsheet?
Thank you in advance!
List
[TABLE="width: 500"]
[TR]
[TD]Department
[/TD]
[TD]Shift[/TD]
[TD]State[/TD]
[/TR]
[TR]
[TD]Home Health[/TD]
[TD]Nights
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]Nights[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sporting Goods[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Grocery[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]Nights[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Furniture[/TD]
[TD]Days[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pets[/TD]
[TD]Nights[/TD]
[TD][/TD]
[/TR]
[/TABLE]
The goal of this is to look at the summary sheet below and populate the State column with the lowest value that matches the department and shift.
Summary sheet:
[TABLE="width: 500"]
[TR]
[TD]Department
[/TD]
[TD]Alabama[/TD]
[TD]Alabama[/TD]
[TD]Alaska[/TD]
[TD]Alaska[/TD]
[TD]Maryland[/TD]
[TD]Maryland[/TD]
[TD]Maine[/TD]
[TD]Maine[/TD]
[/TR]
[TR]
[TD]Pets
[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[TD]Days[/TD]
[TD]Nights[/TD]
[/TR]
[TR]
[TD]Grocery[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]34[/TD]
[TD]8[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Garden[/TD]
[TD]5[/TD]
[TD]879[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]62[/TD]
[TD]154[/TD]
[TD]87[/TD]
[TD]52[/TD]
[/TR]
[TR]
[TD]Home Health[/TD]
[TD]1567[/TD]
[TD]79[/TD]
[TD]712[/TD]
[TD]3[/TD]
[TD]456[/TD]
[TD]78[/TD]
[TD]152[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Cosmetics[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]65[/TD]
[TD]79[/TD]
[TD]8[/TD]
[TD]4891[/TD]
[TD]54[/TD]
[TD]568[/TD]
[/TR]
[TR]
[TD]Furniture[/TD]
[TD]45[/TD]
[TD]45[/TD]
[TD]878[/TD]
[TD]9[/TD]
[TD]8[/TD]
[TD]455[/TD]
[TD]657[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]Toys[/TD]
[TD]126[/TD]
[TD]489[/TD]
[TD]897[/TD]
[TD]7891[/TD]
[TD]324[/TD]
[TD]348[/TD]
[TD]48[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Sporting Goods[/TD]
[TD]87[/TD]
[TD]98[/TD]
[TD]7[/TD]
[TD]1[/TD]
[TD]56[/TD]
[TD]4897[/TD]
[TD]97[/TD]
[TD]321[/TD]
[/TR]
[/TABLE]
These aren't numbers on the summary sheet, they are a countifs statement taht counts the state column (C) from the summary sheet for that specific unit and shift. For example there are a count of 456 "Maryland" in column C on the summary sheet.
When a state is populated in the "List" Spreadsheet the formulas on the summary tab would add 1 to that department/state/Day field respectively. Therefor the next item in the list could be impacted from the previous item on the list.
Is this possible with a formula in the State cells on the List spreadsheet?
Thank you in advance!