Help with inconsistent calculated column formula error

Liz_I3

Well-known Member
Joined
Dec 30, 2002
Messages
647
Office Version
  1. 2016
Platform
  1. Windows
Hi
I am working with Excel 2007. I have the below forumla in a cell in a table.

=SUM(COUNTIF(Y173:BC173,{"A","B","V","T","STAT","JD","STD"}))+SUM(Y173:BC173)+(COUNTIF(Y173:BC173,"VHD")/2)

The forumla returns the correct answer, but when a new row is added the formula is automatically changed to

=SUM(COUNTIF(Y174:BC174,{0,0,0,0,0,0,0}))+SUM(Y174:BC174)+(COUNTIF(Y174:BC174,"VHD")/2)

Also my original formula is getting and inconsistent calculated column formula error even though it is returning what I expected it to return. What excel changes it to, returns an incorrect value.

How can I solve this?

Thanks
L
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Maybe I'm misunderstanding the problem, but wouldn't this solve it?

Code:
=SUM(COUNTIF(Y$173:BC$173,{"A","B","V","T","STAT","JD","STD"}))+SUM(Y$173:BC$173)+(COUNTIF(Y$173:BC$173,"VHD")/2)

Hank
 
Upvote 0
Yes, that work's and I believe that is exactly what I do have in the initial table, but when you add a new row to the table the formula is automatically put in the new rows column and in that cell if drops the "A", "B", "STA" etc and replaces them with 0. I do not understand why this would happen. Should the formula not be copied exactly whether excel thinks it is correct or not?

Thanks for looking

L
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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