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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,215,737
Messages
6,126,562
Members
449,318
Latest member
Son Raphon

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