How to find the earliest shipment?

Rickdu

New Member
Joined
Sep 6, 2011
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I have a problem to resolve. as the image below, on the left hand side are bunch of data with product, week & shipment. what I wanted to achieve is to find the earliest shipment week as well as volume in the right hand side with formulas.

thanks in advance for the help.

Capture.JPG
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
A couple of suggestions that should help you get best answers in the future:

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

See if this helps, assuming Product A & B are in cells F2:F3
G2: =VLOOKUP(F2,A$2:B$100,2,0)
H2: =VLOOKUP(F2,A$2:C$100,3,0)
 
Upvote 0
A couple of suggestions that should help you get best answers in the future:

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

See if this helps, assuming Product A & B are in cells F2:F3
G2: =VLOOKUP(F2,A$2:B$100,2,0)
H2: =VLOOKUP(F2,A$2:C$100,3,0)
Thanks Peter_SSs for your suggestions. all been taken care of now. The solution proposed will find the first value even the value has a 0. what I tried to achieve is finding the week for the first shipment with a value ,i.e. the answer for the earliest shipment of B is week 32. I have reattached the mini sheet.

Book1
ABCDEFGHIJ
1ProductWeekShipmentProductearliest shipmentvolume
2A31.202150A
3A32.2021B
4A33.202180
5A34.202150
6A35.2021
7A36.2021100
8B31.2021
9B32.202140
10B33.2021
11B34.202130
12B35.202130
13B36.202130
Sheet1
 
Last edited:
Upvote 0
Thanks for updating your profile. (y)

The solution proposed will find the first value even the value has a 0.
You did not have any examples where the first value was empty so I didn't know that was possible. ;)

Try this instead.

21 08 04.xlsm
ABCDEFGHIJ
1ProductWeekShipmentProductearliest shipmentvolume
2A31.202150A31.202150
3A32.2021B32.202140
4A33.202180
5A34.202150
6A35.2021
7A36.2021100
8B31.2021
9B32.202140
10B33.2021
11B34.202130
12B35.202130
13B36.202130
Earliest
Cell Formulas
RangeFormula
I2:J3I2=INDEX(FILTER(B$2:B$13,($A$2:$A$13=$H2)*($C$2:$C$13<>""),""),1)
 
Upvote 0
Solution
Thanks for updating your profile. (y)


You did not have any examples where the first value was empty so I didn't know that was possible. ;)

Try this instead.

21 08 04.xlsm
ABCDEFGHIJ
1ProductWeekShipmentProductearliest shipmentvolume
2A31.202150A31.202150
3A32.2021B32.202140
4A33.202180
5A34.202150
6A35.2021
7A36.2021100
8B31.2021
9B32.202140
10B33.2021
11B34.202130
12B35.202130
13B36.202130
Earliest
Cell Formulas
RangeFormula
I2:J3I2=INDEX(FILTER(B$2:B$13,($A$2:$A$13=$H2)*($C$2:$C$13<>""),""),1)
works great. thanks for the help.
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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