Filter and Countifs?

Limit Braker

New Member
Joined
Jun 17, 2020
Messages
13
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi guys,

Im trying to filter to a table some promotions (given that our ERP doesnt have mix and match codes to filter from)

The database im extracting from looks like this:

1597082681842.png



and the table im filtering it to looks like this:

1597082722396.png


The colors match the products of the promotion.

So for example.

What if i want to know how many promo2 did store1 sell? witht that given price? (promo2 total price is 25 bucks, how do i sum the values on different rows to add up that criteria and at the same time fulfill all the rest of criterias?)

I did it with Countifs filtering the products from a pivottable so that i can get the total price per ticket.

But can i do it from a formula itself?

Please any suggestions
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I have Questions

1, Is Promo1 related to Product11a 1b, 1c. (1 in Promo code related to 1 in Product) is this true
 
Upvote 0
I have Questions

1, Is Promo1 related to Product11a 1b, 1c. (1 in Promo code related to 1 in Product) is this true
yes precisely, i forgot to mention it. Product1a, 1b, 1c are the products that make promo1 (All possible combinations withouth repetition) and so on.
 
Upvote 0
if you dont mind please use xl2bb addin available in the right hand side of the reply box to paste the data so that we dont have to type the data

Download xl2bb----- unzip the file----- Double click and you will find the Mr Excel tab in Excel. Just selct the range and capture range and Generate output. Paste in Reply box
 
Upvote 0
How many promo codes can be there??? Max No Promo100 or etc...
 
Upvote 0
Try this

Book1
ABCDEFGHIJKLM
2TicketStoreProductUnitsTotal
31Store1Product1a130StoresPromo1Promo2Promo3
41Store1Product1b1100Store1300
51Store1Product1c110Store2020
62Store2Product2a110Store3005
72Store2Product2b115Store4020
83Store3Product3a1100
93Store3Product3b115
103Store3Product3c120
113Store3Product3d135
123Store3Product3e112
134Store4Product2a110
144Store4Product2b115
15
16
17
18
Sheet9
Cell Formulas
RangeFormula
J4:L7J4=SUM(IFERROR(IF($B$3:$B$14=$I4,IF(SEARCH(MID(J$3,6,9999),$C$3:$C$14),$D$3:$D$14)),0))
B6:B14B6="Store"&A6
 
Upvote 0
Have you tried a sumif? Send the dataset if you can

if you dont mind please use xl2bb addin available in the right hand side of the reply box to paste the data so that we dont have to type the data

Download xl2bb----- unzip the file----- Double click and you will find the Mr Excel tab in Excel. Just selct the range and capture range and Generate output. Paste in Reply box

Thank you everyone for your replies, here is the actual file.

Sheet1) the dataset i use
sheet2) the table where i want to summarize the promotions (Since like i said theresno mix and match code in our ERP yet)
sheet 3) Skus for each promo with all possible combinations without repetition.


Here is the download link for the ones who can help me pls :)

Mr Excel case.xlsx
 
Upvote 0
You have error in the Sheet 3. CREATINE MICRONIZED 300 G - DYMATIZE is available in both Goliath 12lb + Creatine 300g & Glutamine 300g + Creatine 300g
 
Upvote 0

Forum statistics

Threads
1,216,319
Messages
6,130,025
Members
449,550
Latest member
jackpaz

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