Sumproduct

lars

Board Regular
Joined
Mar 27, 2002
Messages
105
Here is my formula

=SUMPRODUCT(('327'!$C$6:$C$424=B34)*(MONTH('327'!$F$6:$F$424)>=5)*(MONTH('327'!$F$6:$F$424)<=8)*('327'!$R$6:$R$424))

my question applies to the last part *('327'!$r$6:$r$424....I need this part to look at two columns instead of just "R" and bring back whichever one is greater.

If the sum of column M is greater than S than use M or use S if that is greater

I used this for the last part and it works alone but not with the sumproduct formula
*((IF(SUM('327'!$R$6:$R$424)>SUM('327'!$S$6:$S$424),SUM('327'!$R$6:$R$424),SUM('327'!$S$6:$S$424)))))

Any help would be great

thanks
 
I want the formula to look at a particular ship then look at if it falls within a certain date once it's done that look at two deifferent columns and whichever is greatest use that number. the two columns have more than one number so it needs to add the numbers together in each column then determine which is largest

Does that make sense?
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
On 2002-04-09 14:52, lars wrote:
option 1 is what I'm looking for

Hi Lars,

It appears that Aladin's first formula answers your request. Just make sure your ranges are properly specified.

Jay
 
Upvote 0
Jay, your formula worked but the numbers are off slightly not sure why yet.

Thanks

I'll give Aladins a try
 
Upvote 0
On 2002-04-09 15:10, lars wrote:
Jay, your formula worked but the numbers are off slightly not sure why yet.

Thanks

I'll give Aladins a try

Hi Lars,

My formula was for option 2, not option 1. I think Aladin's first formula will do the job.

Jay
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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