Add second criteria

Blake0920

Board Regular
Joined
Jan 2, 2022
Messages
60
Office Version
  1. 2016
Platform
  1. Windows
Trying to add a second criteria to this formula. Essentially when the month is equal to Jan-22 I need it to populate this field with the price. For example, when the campaign = to C3CAN and the campaign mo/yr = Jan-22 to populate the field with the sale price (ex. $2193.00).

1st image is what i currently have (=SUMPRODUCT((SUBTOTAL(3,OFFSET(L4,ROW(L4:L8)-ROW(L4),)))*(R4:R8="C3CAN")*(H4:H8))).

I need to add (S4:S8="Jan-22") to the formula so the price only populates when the month of the campaign is selected.

I could only get as far when the campaign is selected it populates the field with the price but i need it to only populate when the campaign month is selected.

Thank you.
 

Attachments

  • Screenshot 2022-01-02 211528.png
    Screenshot 2022-01-02 211528.png
    28.3 KB · Views: 10

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
May be:
Code:
=SUMPRODUCT((SUBTOTAL(3,OFFSET(L4,ROW(L4:L8)-ROW(L4),)))*(R4:R8="C3CAN")*(H4:H8)*(TEXT(L4:L8,"mmm-yy")="Jan-22"))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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