How to pick-up data & populate across column?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
527
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
I do have the following sample data set spread across A1:D6
I would like to pick-up the Supplier Code against the latest PO date & populate the same across column E against one Article Code.
Pls help with the formula in column E which can deliver the said result.

Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
1​
a
03-Jan​
10​
30​
1​
b
09-Jan​
20​
30​
1​
s
29-Jan​
30​
30​
1​
d
24-Jan​
30​
30​
1​
e
15-Jan​
30​
30​
2​
x
18-Jan​
40​
50​
2​
y
21-Jan​
50​
50​
2​
z
10-Jan​
50​
50​

 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Thanks for the reply DRSteele!!:)
Pls let me know if you need any further clarification from my side in this.
 
Upvote 0
Is this what you mean?

A_MrExcel.xlsm
ABCDE
1Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
21a3-Jan1030
31b9-Jan2030
41s29-Jan3030
51d24-Jan3030
61e15-Jan3030
72x18-Jan4050
82y21-Jan5050
92z10-Jan5050
Last PO
Cell Formulas
RangeFormula
E2:E9E2=INDEX(D:D,AGGREGATE(15,6,ROW(A$2:A$9)/((A$2:A$9=A2)*(C$2:C$9=MAXIFS(C$2:C$9,A$2:A$9,A2))),1))



Edit: If you don't have the MAXIFS function (please update your Account details so we know what Excel version(s) you have) then try

=INDEX(D:D,AGGREGATE(15,6,ROW(A$2:A$9)/((A$2:A$9=A2)*(C$2:C$9=AGGREGATE(14,6,C$2:C$9/(A$2:A$9=A2),1))),1))
 
Last edited:
Upvote 0
Here another formula for you to consider:

Note: is an array formula. Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.

Book1
ABCDE
1Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
21a03/01/20201030
31b09/01/20202030
41s29/01/20203030
51d24/01/20203030
61e15/01/20203030
72x02/01/20204050
82y21/01/20205050
92z10/01/20205050
sheet
Cell Formulas
RangeFormula
E2:E9E2{=MAX(($A$2:$A$9=A2)*($C$2:$C$9=LARGE(IF($A$2:$A$9=A2,$C$2:$C$9),1))*($D$2:$D$9))}
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Oh heavens!

I pasted something and it was all wrong so I edited the posting with something neutral. Then I just plumb forgot to come back and finish the job. So sorry.

PeterSS will surely sort your project.
 
Upvote 0
Actually, my previous suggestion doesn't need the INDEX if the Supplier code is always numerical

A_MrExcel.xlsm
ABCDE
1Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
21a3-Jan1030
31b9-Jan2030
41s29-Jan3030
51d24-Jan3030
61e15-Jan3030
72x18-Jan4050
82y21-Jan5050
92z10-Jan5050
Last PO (2)
Cell Formulas
RangeFormula
E2:E9E2=AGGREGATE(15,6,D$2:D$9/((A$2:A$9=A2)*(C$2:C$9=MAXIFS(C$2:C$9,A$2:A$9,A2))),1)


.. or if no MAXIFS:
=AGGREGATE(15,6,D$2:D$9/((A$2:A$9=A2)*(C$2:C$9=AGGREGATE(14,6,C$2:C$9/(A$2:A$9=A2),1))),1)
 
Upvote 0
Here another "regular" formula that does not require ctrl+shift+enter to accept it, for you to consider:

Book1
ABCDE
1Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
21a03/01/20201030
31b09/01/20202030
41s29/01/20203030
51d24/01/20203030
61e15/01/20203030
72x18/01/20204050
82y21/01/20205050
92z10/01/20205050
Sheet7
Cell Formulas
RangeFormula
E2:E9E2=LOOKUP(2,1/(($A$2:$A$9=A2)*($C$2:$C$9=MAX(($A$2:$A$9=A2)*($C$2:$C$9)))),($D$2:$D$9))
 
Upvote 0
Is this what you mean?

A_MrExcel.xlsm
ABCDE
1Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
21a3-Jan1030
31b9-Jan2030
41s29-Jan3030
51d24-Jan3030
61e15-Jan3030
72x18-Jan4050
82y21-Jan5050
92z10-Jan5050
Last PO
Cell Formulas
RangeFormula
E2:E9E2=INDEX(D:D,AGGREGATE(15,6,ROW(A$2:A$9)/((A$2:A$9=A2)*(C$2:C$9=MAXIFS(C$2:C$9,A$2:A$9,A2))),1))



Edit: If you don't have the MAXIFS function (please update your Account details so we know what Excel version(s) you have) then try

=INDEX(D:D,AGGREGATE(15,6,ROW(A$2:A$9)/((A$2:A$9=A2)*(C$2:C$9=AGGREGATE(14,6,C$2:C$9/(A$2:A$9=A2),1))),1))
Dear Sir,
I am on Excel 2010 and used your 2nd solution.
It is truly mesmerizing.
Thanks a lot for helping me again.
Regards
 
Upvote 0
Here another "regular" formula that does not require ctrl+shift+enter to accept it, for you to consider:

Book1
ABCDE
1Article CodePO NoPO DateSupplier CodeSupplier Code Against Last PO Date
21a03/01/20201030
31b09/01/20202030
41s29/01/20203030
51d24/01/20203030
61e15/01/20203030
72x18/01/20204050
82y21/01/20205050
92z10/01/20205050
Sheet7
Cell Formulas
RangeFormula
E2:E9E2=LOOKUP(2,1/(($A$2:$A$9=A2)*($C$2:$C$9=MAX(($A$2:$A$9=A2)*($C$2:$C$9)))),($D$2:$D$9))
Dear DanteAmor,
Thanks a lot for your soultions.
It is yielding the desired result.
Thanks again!!
 
Upvote 0

Forum statistics

Threads
1,215,637
Messages
6,125,964
Members
449,276
Latest member
surendra75

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