# Question about use of VLOOKUP

#### Ozone9012

##### New Member
Hello everyone,

This is my first post and I expect I'll be here for a while, as I am trying to wrap my head around Excel

I have a question which baffled me for quite a bit, basically, I have this database of transactions throughout an entire year, which contains the Order no., Order date (mm/dd/yyyy), Product name, Quantity, Status, Value, Address.

I am trying to use VLOOKUP to list all the Order numbers marked as "Delivered" ( which would be listed in the Status column ) in the month of August, 2021.

If anyone could point me in the right direction, I would appreciate immensely. Thank you

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

#### Fluff

##### MrExcel MVP, Moderator
Hi & welcome to MrExcel.
You cannot use vlookup for that, but you could use filter like
Excel Formula:
``=FILTER(A2:A1000,(E2:E1000="Delivered")*(TEXT(B2:B1000,"mmmyy")="Aug21"))``

#### Ozone9012

##### New Member
Hi & welcome to MrExcel.
You cannot use vlookup for that, but you could use filter like
Excel Formula:
``=FILTER(A2:A1000,(E2:E1000="Delivered")*(TEXT(B2:B1000,"mmmyy")="Aug21"))``
Thanks for the quick reply and for the help <3

I will definitely try this out. What if I tried to use a pivot table and then use a Vlookup function as I can, then, rearrange the data to fit my needs.

#### Fluff

##### MrExcel MVP, Moderator
I've never used pivot tables, so know nothing about them. Hwever vlookup will only find the first value that matched the criteria, so it will not return all the orders numbers.

#### Ozone9012

##### New Member

I've never used pivot tables, so know nothing about them. Hwever vlookup will only find the first value that matched the criteria, so it will not return all the orders numbers.
Got it, I'll try to look for creative ways of looking into this, I find it quite challenging and a fun way to learn Excel. Thanks again for your help

#### Fluff

##### MrExcel MVP, Moderator
Does the formula I suggested not work?

#### Ozone9012

##### New Member
Does the formula I suggested not work?
Sorry for the delay, I am trying to reply as fast as I can between my other work.

It returns an error (empty array) but I think it is about the date format, I'll try to play around with it for now

#### Fluff

##### MrExcel MVP, Moderator
Do you have any orders where col F is Delivered & col C is in August?
If so check that your dates are real dates & not text. You can do that by formatting col C as General & you should see 5 digit numbers.

Replies
2
Views
82
Replies
2
Views
97
Replies
15
Views
490
Replies
11
Views
362
Replies
2
Views
137

1,147,571
Messages
5,741,887
Members
423,693
Latest member
Excelquestion35

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