Index

kizzie37

Well-known Member
Joined
Oct 23, 2007
Messages
575
Office Version
  1. 365
Can someone assist with this

I have a sheet that counts the number of entries in the data sheet

=SUMPRODUCT(--('Data Sheet'!$B$3:$B$1000=C3),--('Data Sheet'!$G$3:$G$1000>TODAY()-WEEKDAY(TODAY())),--('Data Sheet'!$G$3:$G$1000<=TODAY()-WEEKDAY(TODAY())+7))

Then by smallest date (due this week)

=IF(ROWS($L$8:L8)<=Y$5,SMALL(IF(('Data Sheet'!$G$3:$G$1000>TODAY()-WEEKDAY(TODAY()))*('Data Sheet'!$G$3:$G$1000<=TODAY()-WEEKDAY(TODAY())+7)*('Data Sheet'!$B$3:$B$1000=$C$3),'Data Sheet'!$G$3:$G$1000),ROWS($Y$8:$Y8)),"")

This line is indexing the first ref of the returned date and not the date that matches with the data sheet G3??so indexing the wrong task, the task is associated with a different project "C3"

=IF(N($Y8),INDEX('Data Sheet'!C$3:C$1000,SMALL(IF('Data Sheet'!$G$3:$G$1000=$Y8,ROW('Data Sheet'!$C$3:$C$1000)-ROW('Data Sheet'!$G$3)+1),COUNTIF($Y8:$Y$8,$Y8))),"")

Cell Formulas
RangeFormula
V3V3=VLOOKUP(Dashboard!$C$3,'Projects Summary'!$B$2:$G$59,2,FALSE) &" Tasks"
Y5Y5=SUMPRODUCT(--('Data Sheet'!$B$3:$B$1000=C3),--('Data Sheet'!$G$3:$G$1000>TODAY()-WEEKDAY(TODAY())),--('Data Sheet'!$G$3:$G$1000<=TODAY()-WEEKDAY(TODAY())+7))
V8V8{=IF(N($Y8),INDEX('Data Sheet'!C$3:C$1000,SMALL(IF('Data Sheet'!$G$3:$G$1000=$Y8,ROW('Data Sheet'!$C$3:$C$1000)-ROW('Data Sheet'!$C$3)+1),COUNTIF($Y8:$Y$8,$Y8))),"")}
Y8:Y10Y8{=IF(ROWS($L$8:L8)<=Y$5,SMALL(IF(('Data Sheet'!$G$3:$G$1000>TODAY()-WEEKDAY(TODAY()))*('Data Sheet'!$G$3:$G$1000<=TODAY()-WEEKDAY(TODAY())+7)*('Data Sheet'!$B$3:$B$1000=$C$3),'Data Sheet'!$G$3:$G$1000),ROWS($Y$8:$Y8)),"")}
V9:V10V9{=IF(N($Y9),INDEX('Data Sheet'!C$3:C$1000,SMALL(IF('Data Sheet'!$G$3:$G$1000=$Y9,ROW('Data Sheet'!$C$3:$C$1000)-ROW('Data Sheet'!$C$3)+1),COUNTIF($Y$8:$Y9,$Y9))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This line is indexing the first ref of the returned date and not the date that matches with the data sheet G3??so indexing the wrong task, the task is associated with a different project "C3"

=IF(N($Y8),INDEX('Data Sheet'!C$3:C$1000,SMALL(IF('Data Sheet'!$G$3:$G$1000=$Y8,ROW('Data Sheet'!$C$3:$C$1000)-ROW('Data Sheet'!$G$3)+1),COUNTIF($Y8:$Y$8,$Y8))),"")
For the formula to pick up the rows that match C3, you would need that as a criteria in the formula, the same as you have in the Y8:Y10 formula.

=IF(N($Y8),INDEX('Data Sheet'!C$3:C$1000,SMALL(IF(('Data Sheet'!$G$3:$G$1000=$Y8)*('Data Sheet'!$B$3:$B$1000=$C$3),ROW('Data Sheet'!$C$3:$C$1000)-ROW('Data Sheet'!$G$3)+1),COUNTIF($Y8:$Y$8,$Y8))),"")

I think that should do it.
 
Upvote 0

Forum statistics

Threads
1,215,729
Messages
6,126,524
Members
449,316
Latest member
sravya

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