Optimize Formula

Leticia

New Member
Joined
Jun 9, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hi!
How can I optimize the following formula - putting it in just one Countifs?

COUNTIFS('D'!$P:$P;"OTRO";'D'!$G:$G;"<="&$F$4)+COUNTIFS('D'!$G:$G;"<="&$F$4;'D'!$Q:$Q;">"&$F$4)

Thank you!
 
Ok, I thought that you were trying to merge all 3 formulae into one, so that it would spill 5 rows & 6 columns, rather than trying to change the formulae.
Those 3 formula are doing completely different things. If they are not what you want, then you will need to rethink your approach.
Yeah I know, they are calculating what I want it is just that when Scenario 1 occurs I need the results from 1+ the results from 2
And in Scenario 2 i need the results from 1+ the results from 2.

My problem is that I dont know how to obtain the top 5 dynamic array with the sum of 1+2 in one case, and another different dynamic array (in another table) with the sum of 1+3
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
As this has become a totally different question from your op & I have no idea what you are trying to do. I suggest that you start a new thread with some sample data & explain in words (not formulae) what you are trying to do.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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