Help with INDIRECT & SUMIF Formula

craigg3

Board Regular
Joined
Dec 23, 2002
Messages
161
Office Version
  1. 2013
Platform
  1. Windows
I have a SumIf Formula that works good, but I need to add INDIRECT also to keep my cell references from changing when cells get deleted.

I currently have: =SUMIF(R28:R65536, ">=1", N28:N65536) This works good.

When I try and add in the INDIRECT I cant get it to accept it. How can I get this to work?

=SUMIF(INDIRECT("R28:R65536", &">=1", & "N28:N65536"))

Thanks.
 

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.
You need 2 separate indirect functions, 1 for each range in the sumif

=SUMIF(INDIRECT(...),">=1",INDIRECT(...))
 
Last edited:
Upvote 0
Out of curiosity, what is in R1:R27 and N1:N27 ?

Perhaps you can just do
=SUMIF(R:R,">=1",N:N)
 
Upvote 0
You need 2 separate indirect functions, 1 for each range in the sumif

=SUMIF(INDIRECT(...),">=1",INDIRECT(...))

Thank you, this worked great.

I could not use =SUMIF(R:R,">=1",N:N) because I have other numbers in the R and N columns that do not necessarily relate to my SUMIF values.

Thanks for the help.
 
Upvote 0
You're welcome.

One other question, is there another column that could be used as a criteria to differenciate between cells in rows 1-27 vs rows 28+
I'm persisting on this path because INDIRECT is a volatile function, and creates excessive calculations, where the plain SUMIF would work much better.
 
Upvote 0
I could always rearrange my spreadsheet to move the non-related data to another column. I'll spend some time doing that before I finish the rest of the spreadsheet. Thank you for your assistance and recommendations.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,178
Members
449,071
Latest member
cdnMech

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