Insert value into corresponding cell based on item & date

JansiJansi

New Member
Joined
Jun 22, 2022
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hi all.

Here's the TL;DR of what I'm doing:
Taking a list of receive dates for items received in the past year, and putting that date in its corresponding bracket. Here's how it looks (ignore the data - it's not specific, just for example):

1661189211393.png


The way I'm finding the date of the age is by taking a receiving report, finding the most recent receive date for the SKU/item, and subtracting it from =TODAY(). I end up getting a number like 388 (after rounding) for 7/30/2021.

I need the table above to know that skux, for example, was last received 388 days ago, and insert the date 7/30/2021 into the "Age 366+" column in skux's row, etc.

Does anyone have a complicated formula that could accomplish this?

Thank you!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

try something like this with a helper column added.

Book1
ABCDEFGHIJKLMN
1skutitledateAgeing BandSKUTitleOH QAge 0-90Age 91-180Age 181-270Age 271-365Age 366+
2sku1title11-1-20215,00sku1title1   12-11-2021 
3sku1title11-2-20215,00sku2title2    30-7-2021
4sku1title11-3-20215,00
5sku1title11-4-20215,00
6sku1title11-5-20215,00
7sku1title12-6-20215,00
8sku1title13-6-20215,00
9sku1title14-8-20215,00
10sku1title15-9-20214,00
11sku1title16-9-20214,00
12sku1title110-11-20214,00
13sku1title111-11-20214,00
14sku1title112-11-20214,00
15sku2title230-7-20215,00
Sheet1
Cell Formulas
RangeFormula
G2:H3G2=UNIQUE(A2:B15)
J2:N3J2=IF(COLUMN()-9=MINIFS($D$2:$D$15,$A$2:$A$15,$G2,$B$2:$B$15,$H2),MAXIFS($C$2:$C$15,$A$2:$A$15,$G2,$B$2:$B$15,$H2),"")
D2:D15D2=LOOKUP(TODAY()-C2,{0;90;180;270;365},{1;2;3;4;5})
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,435
Members
448,898
Latest member
dukenia71

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