Designing a spreadsheet to show the most up to date entries - 4 Different Offices

Smokeyham

Board Regular
Joined
Feb 1, 2006
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am keeping track of our emergency supplies across four different offices. The supplies kept at the offices are all the same, namely:

Gloves - Small
Gloves - Medium
Gloves - Large
Gloves - XLarge
N95 Masks

Four different people will be sending me reports on different days (they have differing days off, etc.) and I would like to set up a system where I can quickly report on our total level of supplies of each item, using the latest report from each office. Ideally the report would show the number of each item in each office, and also the last date when a report was received and then a total for each item.

Any suggestions on how I set up such a system? I'm thinking something along the lines of a pivot table, but my challenge is having it only pick up the latest entry for each office.


Below is a sample of the type of data I am working with. I do want to keep a historic record of usage at each office, so just updating with the latest entry is not a good option.

DateOfficeGloves -SmallGloves-MediumGloves- LargeGloves- X-LargeXX-LargeTotal GlovesN 95 Masks
4/13/2020CAO3001,3501,2501,0501504,100200
5/1/2020SFO1501,3501,0509501503,650198
5/27/2020FF01001,2501,1507001503,350310
6/2/2020SAO1001,3259507001503,225290
6/2/2020CAO2501,0001,5009002003,850180
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Checking back in..... I engineered a solution to this.

I created a pivot table in columns A&B. This returns the latest date that was done for each office. This article (https://www.excel-university.com/most-recent-transaction-date/) helped to figure out how to get the latest date in a Pivot Table. I used a pivot table because I have relatively few offices and the data is refreshed fairly often.

In the columns to the right (Column C ->>) I have formulas that say to look for the item listed above (for instance "Gloves - Small") and then to look for that value for the date and office shown in columns A & B. The formulas to do this are shown below.

Hope this helps.

Inventory Tracking - Glove & Masks.xlsx
ABCDEFGHI
2Gloves -SmallGloves-MediumGloves- LargeGloves- X-LargeXX-LargeN 95 MasksTotal Gloves
3OfficeDate of Latest Count
4AO8/5/20201,5001,500505006003,100
5CAO8/10/20200752257510016475
6FFO8/2/20204003005509009004833,050
7SAO8/12/2020200200500150150331,200
8SFO8/7/20201001,2001,3501,6501,6501155,950
9
10Total Inventory2,2003,2752,6752,8252,8001,24713,775
Most Current Inventory
Cell Formulas
RangeFormula
C4:C8C4=IF(LEN(A4)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B4)*(RecordByOffice[[#All],[Office]]=$A4),0),3),"")
D4:D8D4=IF(LEN(A4)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B4)*(RecordByOffice[[#All],[Office]]=$A4),0),4),"")
E4:E8E4=IF(LEN(A4)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B4)*(RecordByOffice[[#All],[Office]]=$A4),0),5),"")
F4:F8F4=IF(LEN(A4)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B4)*(RecordByOffice[[#All],[Office]]=$A4),0),6),"")
G4:G5G4=IF(LEN(A4)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B4)*(RecordByOffice[[#All],[Office]]=$A4),0),7),"")
H4:H8H4=IF(LEN(A4)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B4)*(RecordByOffice[[#All],[Office]]=$A4),0),8),"")
I4:I8I4=IF(LEN(A4)>0,SUM(C4:G4),"")
G6:G8G6=IF(LEN(A6)>0,INDEX(RecordByOffice[#All],MATCH(1,(RecordByOffice[[#All],[Date]]=$B6)*(RecordByOffice[[#All],[Office]]=$A6),0),6),"")
C10:I10C10=SUM(C4:C8)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top