SUMIFS - with FinalRow criteria

Jacko1307

Board Regular
Joined
Sep 4, 2012
Messages
92
Office Version
  1. 2016
Platform
  1. Windows
I have a formula which looks at another worksheet and then completes a calculation if criteria is met.

=SUMIF(DataDrop!$C$3:$C$2824,"=PKD000",(DataDrop!$P$3:$P$2824))

Is there a way of incorporating the FinalRow into this formula as when I have tried in numerous ways it results in an error :-(

I have the FinalRow function set on the DataDrop worksheet however, the monthly data rows change month on month.

Thank you in anticipation

Best Regards,

Martin
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Do you actually need it, rather than simply using:

=SUMIF(DataDrop!$C:$C,"=PKD000",DataDrop!$P:$P)
 
Upvote 0
Hello,

You can use the Indirect function and the Sumproduct function to determine the last row in your DataDrop sheet ...

Code:
=SUMPRODUCT(MAX((ROW([COLOR=#333333]DataDrop![/COLOR]$A$1:$A$10000))*([COLOR=#333333]DataDrop![/COLOR]$A$1:$A$10000<>"")))

Hope this will help
 
Upvote 0
Apologies I forgot to mention that there is an offset of 3 rows from FinalRow criteria of the data drop in DataDrop worksheet, which has different data functions.

The FinalRow function is on column 1 and the other actions are on column 3 through 22 however' as there are values in lower cells I dont wish to include these values.

Does this make sence ?

Regards,

Martin
 
Upvote 0
Not to me. :)

Unless you have PKD000 in column C on the same row as values you don't want added for column P, I don't see how it matters whether there are values below.

If you do have that problem, you'd need something like:

=SUMIF(DataDrop!$C$3:INDEX(DataDrop!$C:$C,FinalRow),"=PKD000",DataDrop!$P$3:INDEX(DataDrop!$P:$P,FinalRow))
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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