Question about use of VLOOKUP

Ozone9012

New Member
Joined
Sep 29, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Jun 12, 2014
Messages
65,618
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Sep 29, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Jun 12, 2014
Messages
65,618
Office Version
  1. 365
Platform
  1. Windows
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
Joined
Sep 29, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

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
Joined
Jun 12, 2014
Messages
65,618
Office Version
  1. 365
Platform
  1. Windows
Does the formula I suggested not work?
 

Ozone9012

New Member
Joined
Sep 29, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
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 :)
1632931967099.png
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,618
Office Version
  1. 365
Platform
  1. Windows
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.
 
Solution

Forum statistics

Threads
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.
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
Top