Formula with curly brackets not working

Nick70

Active Member
Joined
Aug 20, 2013
Messages
299
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a really tough one here so I would be over the moon if anyone has an answer to it.

A colleague of mine has created a s/s where there is a formula (see below) which basically looks at text in a range (C110:AF110) and if it contains certain words e.g. completed or Initial Review etc. it will count it as 1 or 1*weight e.g. 1*0.15 or 1*0.25 (see below) and add all these numbers together and then divide the total by 20.

Excel Formula:
=(SUM(COUNTIF(C110:AF110,{"completed","N.A."}))+(SUM(COUNTIF(C110:AF110,"Initial Review")*0.15))+(SUM(COUNTIF(C110:AF110,"reviewing")*0.25))+(SUM(COUNTIF(C110:AF110,"reworks")*0.75))+(SUM(COUNTIF(C110:AF110,"follow up")*0.5))+(SUM(COUNTIF(C110:AF110,{"requested","*week*"})*0.25)))/20

What is really strange is that the formula works for him but does not work for me even though we look at the same excel file!

When he changes text 'Initial review' or 'reviewing' to 'completed' for example, the final number changes (because completed counts as 1 in formula whereas initial review and reviewing count as 0.15 and 0.25 respectively).

I am wondering if his Excel has some add-ins or something which mine does not and for this reason this formula with curly brackets works for him but not for me?

Does anyone have any possible suggestions as to how this may be possible (i.e. formula works for him when he opens file in excel but not for me when I open same file in excel)?

Could it be that because of curly brackets I need something special in my excel to be able to read formula?
Could it be that if he created the array formula then it will work for him but not for me?

Thanks,
Nic
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
There are a few extra functions in there that are not needed, but nothing out of the ordinary and certainly no obvious reason for it to work for one user but not another.
Compressing the formula a little, although I don't see it making any difference.
Excel Formula:
=SUMPRODUCT(COUNTIF(C110:AF110,{"completed","N.A.","Initial Review","reviewing","reworks","follow up","requested","*week*"}),{0,0,0.15,0.25,0.75,0.5,0.25,0.25})/20
 
Upvote 0
Hi Jason,

Thanks a lot for improving formula.

I have now looked again at whether formula works or not and surprise, surprise it works!
The old formula that is (but I will later change it to yours).

As I am working from home in remote maybe that had some kind of effect on excel performance which now has disappeared.

Thanks a lot anyway.

Nix

:)(y)
 
Upvote 0
Another idea to consider.
This is a mini version of your challenge.
N.B. You can post an extract of your sheet with the forum's tool XL2BB.
The Lookup can use a table or be included in the formula.

T202110a.xlsm
BCDEFGH
13
14Competed1
15Follow up0.5
16Initial Review0.15
17Reviewing0.25
18Reworks0.75
19
105
106
1070.19250.19250.1925
4a
Cell Formulas
RangeFormula
B107B107=(SUM(COUNTIF(C110:K110,{"completed","N.A."}))+(SUM(COUNTIF(C110:K110,"Initial Review")*0.15))+(SUM(COUNTIF(C110:K110,"reviewing")*0.25))+(SUM(COUNTIF(C110:K110,"reworks")*0.75))+(SUM(COUNTIF(C110:K110,"follow up")*0.5))+(SUM(COUNTIF(C110:K110,{"requested","*week*"})*0.25)))/20
C107C107=SUMPRODUCT(LOOKUP(C110:K110,G14:H18))/20
D107D107=SUMPRODUCT(LOOKUP(C110:K110,{"Competed",1;"Follow up",0.5;"Initial Review",0.15;"Reviewing",0.25;"Reworks",0.75}))/20
 
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