Reduce formula

trimiii

Board Regular
Joined
May 15, 2018
Messages
69
Office Version
  1. 365
Platform
  1. Windows
HI,

I am using the following formula which is too long.. any idea how to short this?


=COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!J6:J105,">="&A4,'A-MAP'!J6:J105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!L6:L105,">="&A4,'A-MAP'!L6:L105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!N6:N105,">="&A4,'A-MAP'!N6:N105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!P6:P105,">="&A4,'A-MAP'!P6:P105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!R6:R105,">="&A4,'A-MAP'!R6:R105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!T6:T105,">="&A4,'A-MAP'!T6:T105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!V6:V105,">="&A4,'A-MAP'!V6:V105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!X6:X105,">="&A4,'A-MAP'!X6:X105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!Z6:Z105,">="&A4,'A-MAP'!Z6:Z105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!AB6:AB105,">="&A4,'A-MAP'!AB6:AB105,"<="&B4)+COUNTIFS('A-MAP'!B6:B105,Sheet1!$A$1,'A-MAP'!AD6:AD105,">="&A4,'A-MAP'!AD6:AD105,"<="&B4)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
It doesn't look too long to me.

If it works, don't try to fix what isn't broken. Shorter alternatives will take longer to calculate.
 
Upvote 0
Perhaps something like:

=SUMPRODUCT(('A-MAP'!B6:B105=Sheet1!$A$1)*('A-MAP'!J6:AD105>=A4)*(MOD(COLUMN('A-MAP'!J6:AD105),2)=0)*('A-MAP'!J6:AD105<=B4))
 
Upvote 0

Forum statistics

Threads
1,214,381
Messages
6,119,192
Members
448,874
Latest member
Lancelots

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