1+1=??

cgreen

Active Member
Joined
Aug 14, 2002
Messages
293
Hi All,

In column ‘U’ I have a link that enters a date when a project is completed. I am wanting to keep a count of completed projects, so I am using this formula “=IF(U3>0,"1","")” with the intentions of adding the 1 down the column to get a total. I entered a simple formula to get a total “=sum(AC3:AC47)”, the answer I get is “U”.

What am I doing wrong?

:confused:
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Get rid of the quotes around the "1", it is making it Text instead of numeric:

=IF(U3>0,1,"")

You could also do this by using the COUNTIF function, then you wouldn't need this additional column (the IF statement is part of the COUNTIF function, see Excel help for details).

=COUNTIF(U3:U47,">0")
 
Upvote 0
Well for a start off you shouldn't be putting the 1 inside quotes like "1" as this makes it a string instead of a number ( not very good for summing ).

Try changing that first, and see what happens.


Glenn.
 
Upvote 0

Forum statistics

Threads
1,221,711
Messages
6,161,450
Members
451,707
Latest member
PedroMoss2268

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