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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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