# i cant figure out what is wrong with my formula

#### lilhotch14

##### Board Regular
im doin a workbook for bowling payments and i cant get a formula correct. can anyone help?

this is the formula

=IF(B9:G9="Absent",0,IF(F\$6="No Bowl",F10,IF(G9="Absent",\$AP10+F10,F10+\$AQ10)))

AP!0 is the value if absent, and AQ10 is when they are there. when i make cell G9 absent, it becomes 0, when its suppose to be F10+AP10.

do you understand my problem?

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying
I can say that the expression

=IF(B9:G9="Absent"

in your formula is invalid, unless you are trying to create an array formula (CSE) which I don't think you do.

Try this:

=IF(G9="Absent",\$AP10+F10,IF(F\$6="No Bowl",F10,(F10+\$AQ10)))

the +IF(B9:G9="Absent" part im trying to get to be so if B9, C9, D9, E9, F9, & G9 are all "Absent" then i want it to be 0, and if only G9 is absent i want it to be F10+\$AP10

Hi

Try

Code:
``=IF(COUNTIF(B9:G9,"Absent")=6,0,IF(F\$6="No Bowl",F10,IF(G9="Absent",\$AP10+F10,F10+\$AQ10)))``

Tony

thx Tony. that worked

Replies
5
Views
157
Replies
4
Views
154
Replies
32
Views
1K
Replies
8
Views
191
Replies
1
Views
109

1,219,971
Messages
6,151,217
Members
451,017
Latest member
peterlam84

### 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.

### Which adblocker are you using?

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

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