modify formula

RSEKAR

Board Regular
Joined
Oct 18, 2010
Messages
172
Dear Sir,

I am using the following formula in a worksheet and it is working well.

=SUMPRODUCT(($G$10:$G$949>0)*($O$10:$O$949<0)*($O$10:$O$949>-10)*($S$10:$S$949))
The cell range is changed if a row is inserted or deleted within the above range. To avoid the change in range I am advised to use INDIRECT function with the above formula. I have modified the above formula with the INDIRECT function and it is not working. Kindly rewrite the above formula adding INDIRECT function in the appropriate places.
I use excel 2002
Thanking you in advance.
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Your data in Sheet1


=SUMPRODUCT((INDIRECT("Sheet1!$G$10:$G$949")>0)*(INDIRECT("Sheet1!$O$10:$O$949")<0)*(INDIRECT("Sheet1!$O$10:$O$949")>-10)*(INDIRECT("Sheet1!$S$10:$S$949")))
 
Upvote 0
This non-volatile formulation is resistant to row insertion or deletion, but will change with added/removed columns.

=SUMPRODUCT(((INDEX($G:$G,10,1):INDEX($G:$G,949,1))>0)*((INDEX($O:$O,10,1):INDEX($O:$O,949,1))<0)*((INDEX($O:$O,10,1):INDEX($O:$O,949,1))>-10)*((INDEX($S:$S,10,1):INDEX($S:$S,949,1))))
 
Upvote 0
Dear Sir,
Both formulas are working well.The ranges are not changed when the rows deleted or inserted.
Thanking you once again.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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