Excel SUM

ibrindley

New Member
Joined
Sep 14, 2002
Messages
20
I currently have a formula:

=SUM(IF(G8:G400="X",IF(F8:F400="Y",1,0)))

This gives me a count of all rows with Column G = "X" and Column F = "Y".

It is working fine and I have a number of cells with this formula in them that are all OK until.......

I try to edit the formula:

When I click on the formula to edit, column G is higlighted with a blue boarder and upon entering "CTRL Enter" the cell displays #VALUE! even though I haven't changed anything.

I am clueless - can anyone help please ?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-10-10 11:43, ibrindley wrote:
I currently have a formula:

=SUM(IF(G8:G400="X",IF(F8:F400="Y",1,0)))

This gives me a count of all rows with Column G = "X" and Column F = "Y".

It is working fine and I have a number of cells with this formula in them that are all OK until.......

I try to edit the formula:

When I click on the formula to edit, column G is higlighted with a blue boarder and upon entering "CTRL Enter" the cell displays #VALUE! even though I haven't changed anything.

I am clueless - can anyone help please ?

That's an array-formula that needs to be entered with control+shift+enter, also after an edit.

By the way,

=SUMPRODUCT((G8:G400="X")*(F8:F400="Y"))

which is normally entered and does the same computation.
 

Forum statistics

Threads
1,144,150
Messages
5,722,797
Members
422,459
Latest member
Chriselff

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
Top