Value to be returned based on 3 criteria and unsorted dates.

excelindianfanclub

Board Regular
Joined
Oct 20, 2012
Messages
64
Hi Excel gurus and Excel Lovers,

Missed a lot for months.Here my troublesome question.

CDEF
7DateLoom noDesignCount
808 Oct 20133CB76
907 Oct 20133CB82
1006 Oct 20139BA80
1105 Oct 201313BC72
1204 Oct 201314CA83
1302 Oct 20136AB79
1430 Sep 201315CB83
1527 Sep 201311AC80
1627 Sep 201311AC65
1725 Sep 201311BC81
1824 Sep 201313BB69
1923 Sep 20132AB72
2022 Sep 201311AC78
2123 Sep 201311AC85
2223 Sep 201315BC68
2320 Sep 20133CC82
24
25DateLoom noDesignCount
2629-Sep-1311AC85

<tbody>
</tbody>


I used Name range for the sheet name Cal
Date=Cal!$C$8:$C$23
Design=Cal!$E$8:$E$23
Loom_no=Cal!$D$8:$D$23
count=Cal!$F$8:$F$23

<tbody>
</tbody>

Formula used in cell F26 is {=IF(OR(C26="",D26="",E26=""),"",INDEX(Count,LARGE(IF(((Loom_no=$D26)*(Design=$E26)*(Date<=$C26)),ROW(Count)-ROW(F8)+1),1),1))}#array formula.As per my formulation,im getting the value of count from cell F21(colored in red) but i need to get it from cell F16(colored in green).I figured out why i got the wrong output too.

Please help me to pick the value of count, even dates are not sorted properly and also if i sort the date from largest to smallest.A issue is that the count will be revised(changed) for same design on the same date.

My goal is to get the latest value of count for the earliest or equal to the date given in cell C26 and also for given design and loom no

Hope i get the better solution.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Formula used in cell F26 is{=IF(OR(C26="",D26="",E26=""),"",INDEX(Count,LARGE(IF(((Loom_no=$D26)*(Design=$E26)*(Date<=$C26)),ROW(Count)-ROW(F8)+1),1),1))}#array formula.As per my formulation,im getting the value of count from cell F21(colored in red) but i need to get it from cell F16(colored in green).I figured out why i got the wrong output too.

Please help me to pick the value of count, even dates are not sorted properly and also if i sort the date from largest to smallest.A issue is that the count will be revised(changed) for same design on the same date.

My goal is to get the latest value of count for the earliest or equal to the date given in cell C26 and also for given design and loom no

Hope i get the better solution.
 
Upvote 0

Forum statistics

Threads
1,216,144
Messages
6,129,120
Members
449,488
Latest member
qh017

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