Vlookup/countif?

WSBirch

Board Regular
Joined
Apr 10, 2018
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,
Trying to solve a problem I may not entirely understand.

I'm trying to count the number of items not completed (marked as "1" in the below Column E) within an array of rows all referenced by a particular number.

I have a table of information as seen below. I'm trying to count the number of items not completed per order.
Is there a way of using VLOOKUP to find the order number then COUNTIF to count the number of completed items within the array of the order number?

Capture.png


Based on the above table, what I'm looking for is a total count of all the "1"s from Column E for each unique order number from Column A.
I'd like to VLOOKUP the order number and have displayed the count of the array of Not-Completed items (anything with a "1" in Column E).

Example - VLOOKUP 123456 will return 2
Example - VLOOKUP 654321 will return 1
Example - VLOOKUP 987654 will return 1
and so on

Am I on the incorrect track thinking of using VLOOKUPs and COUNTIFs?

As as side note, the table is not static and will update as refreshed with new information.

All help would be greatly appreciated!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Re: VLOOKUP/COUNTIF help?

I would use
=sumproduct(($a$2:$a$14=(here put cell address having 123456 in it) )*($e$2:$e$14))
 
Upvote 0
Solution
Re: VLOOKUP/COUNTIF help?

Fantastic! This works great.
Thank you much.
 
Upvote 0
Re: VLOOKUP/COUNTIF help?

so you just need to put all order numbers in say column A and my formula in column B
 
Upvote 0

Forum statistics

Threads
1,214,625
Messages
6,120,598
Members
448,973
Latest member
ksonnia

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