Populate cells based on value in another tab

Surferol

New Member
Joined
Apr 9, 2021
Messages
17
Office Version
  1. 365
Platform
  1. MacOS
Hi,
I have an index which contains data such as ID number, last survey, next survey due, days left till next survey.
I want a separate monthly report tab to auto populate the ID numbers based on how long is left till the expiry date.
The monthly report tab is already set up to pull specific data from the index based on the IDs, I just need a way for the correct ID number to automatically populate the right column.
Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi Surefrol,

Here's my INDEX tab with the data
Surferol.xlsx
ABCD
1IDLast SurveyNext SurveyDays Left to Next Survey
2XS64402-Feb-2021-Apr-2111
3XS96617-Mar-2002-Mar-21-39
4XS49230-Apr-2015-Apr-215
5XS61513-Jun-2028-Apr-2118
6XS73827-Jul-2012-Jul-2193
7XS86109-Sep-2025-Aug-21137
8XS98423-Oct-2028-Apr-2118
9
INDEX
Cell Formulas
RangeFormula
D2:D8D2=C2-TODAY()


Here's my REPORT tabe with the results
Surferol.xlsx
AB
1IDDays Left to Next Survey
2XS966-39
3XS4925
4XS64411
5XS61518
6XS98418
7XS73893
8XS861137
9  
REPORT
Cell Formulas
RangeFormula
A2:A9A2=IF(B2="","",INDEX(INDEX!$A$2:$A$9999,AGGREGATE(15,6,ROW(INDEX!$A$2:$A$9999)-ROW(INDEX!$A$1)/(INDEX!$D$2:$D$9999=B2),COUNTIF($B$1:$B2,B2))))
B2:B9B2=IFERROR(AGGREGATE(15,6,INDEX!$D$2:$D$9999,ROW()-ROW($A$1)),"")
 
Upvote 0
Thank you, that's awesome.
Does this also work if I only want the report to fill with info from anything that has less than 45 days left?
 
Upvote 0
Hi Toadstool,
This is an example of my data, you can see some of the entries had >45 days left, others are <45 days and some have no days remains (-31 and -499)
I would like the report to fill in just the ID number (the rest of that page will pull the remaining info already), but only for the entries that have less than 45 days remaining.
 

Attachments

  • Screen Shot 2021-04-11 at 14.37.08.png
    Screen Shot 2021-04-11 at 14.37.08.png
    42 KB · Views: 3
  • Screen Shot 2021-04-11 at 14.37.46.png
    Screen Shot 2021-04-11 at 14.37.46.png
    35.9 KB · Views: 3
Upvote 0
How about
+Fluff 1.xlsm
ABCD
1IDLast SurveyNext SurveyDays Left to Next Survey
2XS64402/02/202021/04/202110
3XS96617/03/202002/03/2021-40
4XS49230/04/202015/04/20214
5XS61513/06/202028/04/202117
6XS73827/07/202012/07/202192
7XS86109/09/202025/08/2021136
8XS98423/10/202028/04/202117
9
10
Main
Cell Formulas
RangeFormula
D2:D8D2=C2-TODAY()


+Fluff 1.xlsm
A
1ID
2XS644
3XS966
4XS492
5XS615
6XS984
7
Summary
Cell Formulas
RangeFormula
A2:A6A2=FILTER(Main!A2:A100,(Main!D2:D100<45)*(Main!A2:A100<>""))
Dynamic array formulas.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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