hi everyone
I need some help regarding the conditional formatting my excel is running slow. Here is the formula: =AND(COUNTIF($B:$B,$B14)=COUNTIF($B$14:$B14,$B14),$O14="P")
anyone have advise or another formula.
Thanks in advance!
hi everyone
I need some help regarding the conditional formatting my excel is running slow. Here is the formula: =AND(COUNTIF($B:$B,$B14)=COUNTIF($B$14:$B14,$B14),$O14="P")
anyone have advise or another formula.
Thanks in advance!
Limit this range:
$B:$B
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Hi,
I would think that if you can sort the data on column B, you could use a more efficient formula. If not, you should probably separate the two tests using
=IF($O14="P",COUNTIF($B:$B,$B14)=COUNTIF($B$14:$B14,$B14),FALSE)
so that the COUNTIF part is only executed if column O contains P.
Don
Please remember to mark your thread 'Solved' when appropriate.
Formula:Please Login or Register to view this content.
Mentioned actual data range. For example $B$2:$B$200
Formula:Please Login or Register to view this content.
atul
If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.
Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".
In my experience there is little to no benefit to be had by limiting the range passed to COUNTIF as it only looks at the used range anyway.
thanks for the reply
xlnitwit thank you very much now its solved my problem..
thank you all for your response.
Last edited by AliGW; 07-03-2017 at 05:11 AM.
I don't know, is the simple answer but I have never seen much performance difference when passing entire columns to most worksheet functions. There is an obvious hit if you use an operator on an entire column (like * or / for example) but worksheet functions themselves seem to have some sort of short-circuiting to limit the range they consider, whether that be in the function code itself or in the way that the range is passed to the function.
Thanks. Nonetheless, it is well-known that some formulae that reference entire columns are slower than the same formulae with a limited range. Seems to be a problem with some array formulae.
Yes that is certainly true. Many array formulas use operators on arrays, which are affected by entire columns, but also I think the array nature of the formula leads to multiple evaluations dependent upon the number of input cells, and this, I think, bypasses the short-circuiting feature.
I'm sure you're right. All very interesting.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks