SUMProduct formula...but I need to add an extra variable

davids4500

New Member
Joined
Jan 14, 2023
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hi....I am using this formula =SUMPRODUCT(--(ISNUMBER(SEARCH("PLNT*",Chreosdata!A2:A6640))),(Chreosdata!P2:P6640*Chreosdata!F2:F6640)), but I need to add another variable... ("CAMP*",Chreosdata!E2:E6640). Where does it fit in the formula that i am using at present? Thank you
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Just going by available information, you can try :

=SUMPRODUCT(--(ISNUMBER(SEARCH("PLNT*",Chreosdata!A2:A6640))),(Chreosdata!P2:P6640*Chreosdata!F2:F6640),--(ISNUMBER(SEARCH("CAMP*",Chreosdata!E2:E6640))))
 
Upvote 0
Solution
=SUMPRODUCT(--(ISNUMBER(SEARCH("PLNT*",Chreosdata!A2:A6640))),(Chreosdata!P2:P6640*Chreosdata!F2:F6640),--(ISNUMBER(SEARCH("CAMP*",Chreosdata!E2:E6640))))
Dear Sanjeev1976...you are brilliant and good logic. yes it works and I thank you so much for taking the time to reply. Kindest regards david
 
Upvote 0
I am using this formula =SUMPRODUCT(--(ISNUMBER(SEARCH("PLNT*",Chreosdata!A2:A6640))),(Chreosdata!P2:P6640*Chreosdata!F2:F6640)),
Why do you have an asterisk in the SEARCH function?
ISNUMBER(SEARCH("PLNT" .. would give the same result as ISNUMBER(SEARCH("PLNT*" ... Are you try to confirm that the column A values start with "PLNT"?
 
Upvote 0
Why do you have an asterisk in the SEARCH function?
ISNUMBER(SEARCH("PLNT" .. would give the same result as ISNUMBER(SEARCH("PLNT*" ... Are you try to confirm that the column A values start with "PLNT"?
Thank you so much. Much appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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