Combining, COUNTIF, SUMIF / IF, VLOOKUP

CraigG

Board Regular
Joined
May 1, 2005
Messages
173
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
  2. Mobile
Hi

I'm trying to combine COUNTIF, SUMIF/IF and VLOOKUP and looking for advice. It's probably easier to explain with an example...

----A-------B----------C---------D
1---ABC----qwe-------qwe-------poi

Then on another sheet...

----E-------F
2---ABC----this is where I need the formula


I have hundreds of rows in each worksheet with a name like ABC (they match like-for-like on each worksheet)

In F2 I need a formula which...
- matches the name from E2 to what's in column A
- once it's found the match, count the number of occurrences of 'qwe' and 'poi' and add them together

All names (eg, ABC) are unique and will appear only once on each worksheet.

Can anyone help?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi

I'm trying to combine COUNTIF, SUMIF/IF and VLOOKUP and looking for advice. It's probably easier to explain with an example...

----A-------B----------C---------D
1---ABC----qwe-------qwe-------poi

Then on another sheet...

----E-------F
2---ABC----this is where I need the formula


I have hundreds of rows in each worksheet with a name like ABC (they match like-for-like on each worksheet)

In F2 I need a formula which...
- matches the name from E2 to what's in column A
- once it's found the match, count the number of occurrences of 'qwe' and 'poi' and add them together

All names (eg, ABC) are unique and will appear only once on each worksheet.

Can anyone help?
Maybe this...

Book1
ABCD
2ABCqweqwepoi
3SDFXqweX
4FFFpoi_qwe
5ABCXpoiX
6GHJXXX
7ABCpoipoipoi
Sheet1

=SUMPRODUCT((A2:A7="ABC")*(ISNUMBER(MATCH(B2:D7,{"qwe";"poi"},0))))
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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