# How to show a range or values in one cell?

#### afc171

##### Board Regular
Hi guys,
I get sent a Product pick sheet (first image) which will have the quantities required.
I then pull the information (from Sage) for the products to show what is in stock with batches and date receipted (see 2nd image)
If there is a product which needs to be picked from stock that has 2 or more different batches (e.g DYE0024 in 2nd image) but also need to pick the earliest receipted item how can I populate this information into Product pick sheet or the one I pull the information into from Sage?

Basically I need to copy the products and quantities requested into a sheet which will show me the earliest receipted product and batch.

Thank you

#### Attachments

• Screenshot 2021-05-08 at 17.55.33.png
48.9 KB · Views: 15
• Screenshot 2021-05-08 at 17.56.15.png
160 KB · Views: 16

#### yky

##### Well-known Member
Book out the next 3, 2 or 1. May have to check stock and the enter the batch in manually.
In case the total stock isn't enough to satisfy the request, you'll need to purchase.

You need a vba script to do what you're asking. Formulae can't do it.

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

#### Zot

##### Well-known Member
In case the total stock isn't enough to satisfy the request, you'll need to purchase.

You need a vba script to do what you're asking. Formulae can't do it.
I can agree to this. It is a more practical approach. Using formula, you have to also do some tasks manually I believe.

Replies
0
Views
155
Replies
1
Views
634
Replies
4
Views
74
Replies
0
Views
68
Replies
6
Views
90

1,141,062
Messages
5,704,048
Members
421,325
Latest member
tapete86

### 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.

### Which adblocker are you using?

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

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