Sum If

G

Guest

Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 
G

Guest

Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))
 
G

Guest

Your last post makes no sense to me but the earlier should be like ---
IIf ([ProjectFYE] between #1/1/2006# and #12/31/2006#, Sum([BudgetHrs]),
Null)
If not Null then for the false results then whatever you need such as 0 (
zero ).

--
KARL DEWEY
Build a little - Test a little


Karin said:
Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))

Karin said:
Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 
G

Guest

Thank you. I could not get it to work without the Abs reference - but I
don't really know why. Your solution provides an incorrect answer.

KARL DEWEY said:
Your last post makes no sense to me but the earlier should be like ---
IIf ([ProjectFYE] between #1/1/2006# and #12/31/2006#, Sum([BudgetHrs]),
Null)
If not Null then for the false results then whatever you need such as 0 (
zero ).

--
KARL DEWEY
Build a little - Test a little


Karin said:
Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))

Karin said:
Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 
G

Guest

The asterisk in the formula to me means you are multiplying.

What is BudgetHrs multiplied with?
--
KARL DEWEY
Build a little - Test a little


Karin said:
Thank you. I could not get it to work without the Abs reference - but I
don't really know why. Your solution provides an incorrect answer.

KARL DEWEY said:
Your last post makes no sense to me but the earlier should be like ---
IIf ([ProjectFYE] between #1/1/2006# and #12/31/2006#, Sum([BudgetHrs]),
Null)
If not Null then for the false results then whatever you need such as 0 (
zero ).

--
KARL DEWEY
Build a little - Test a little


Karin said:
Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))

:

Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 
G

Guest

Karl,

Search for my other message SumIf Help, posted 8/6 (it also explains why it
got posted twice - I apologize, but I had a difficult time finding this one
again.) Duane gives an explanation.

Thanks for your help. :)

KARL DEWEY said:
The asterisk in the formula to me means you are multiplying.

What is BudgetHrs multiplied with?
--
KARL DEWEY
Build a little - Test a little


Karin said:
Thank you. I could not get it to work without the Abs reference - but I
don't really know why. Your solution provides an incorrect answer.

KARL DEWEY said:
Your last post makes no sense to me but the earlier should be like ---
IIf ([ProjectFYE] between #1/1/2006# and #12/31/2006#, Sum([BudgetHrs]),
Null)
If not Null then for the false results then whatever you need such as 0 (
zero ).

--
KARL DEWEY
Build a little - Test a little


:

Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))

:

Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 
G

Guest

That did not answer the question I posed.
--
KARL DEWEY
Build a little - Test a little


Karin said:
Karl,

Search for my other message SumIf Help, posted 8/6 (it also explains why it
got posted twice - I apologize, but I had a difficult time finding this one
again.) Duane gives an explanation.

Thanks for your help. :)

KARL DEWEY said:
The asterisk in the formula to me means you are multiplying.

What is BudgetHrs multiplied with?
--
KARL DEWEY
Build a little - Test a little


Karin said:
Thank you. I could not get it to work without the Abs reference - but I
don't really know why. Your solution provides an incorrect answer.

:

Your last post makes no sense to me but the earlier should be like ---
IIf ([ProjectFYE] between #1/1/2006# and #12/31/2006#, Sum([BudgetHrs]),
Null)
If not Null then for the false results then whatever you need such as 0 (
zero ).

--
KARL DEWEY
Build a little - Test a little


:

Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))

:

Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 
G

Guest

I believe it's being multipled by the 1 returned from the Abs result.

KARL DEWEY said:
That did not answer the question I posed.
--
KARL DEWEY
Build a little - Test a little


Karin said:
Karl,

Search for my other message SumIf Help, posted 8/6 (it also explains why it
got posted twice - I apologize, but I had a difficult time finding this one
again.) Duane gives an explanation.

Thanks for your help. :)

KARL DEWEY said:
The asterisk in the formula to me means you are multiplying.

What is BudgetHrs multiplied with?
--
KARL DEWEY
Build a little - Test a little


:

Thank you. I could not get it to work without the Abs reference - but I
don't really know why. Your solution provides an incorrect answer.

:

Your last post makes no sense to me but the earlier should be like ---
IIf ([ProjectFYE] between #1/1/2006# and #12/31/2006#, Sum([BudgetHrs]),
Null)
If not Null then for the false results then whatever you need such as 0 (
zero ).

--
KARL DEWEY
Build a little - Test a little


:

Well, I've been searching and working on this for at least 3 hours, but I
finally got it. Here it is if it can help anyone else:

=Abs(Sum(([ProjectFYE] Between #01/01/2006# And #12/31/2006#)*[BudgetHrs]))

:

Hi, I posted this, but I'm not really sure where it ended up. It should be
here in General, but it seems to be under just "access". Anyway, don't take
offense, here it is again.

Hi, I want to do something like this:

If [ProjectFYE] between #1/1/2006# and #12/31/2006# Sum [BudgetHrs].

I want to do this in a report group footer.

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SumIf Help 5
Sum If 2
DateDif - End of Month 1
Running sum on report 4
Sum Months with Previous Year Totals 1
Calculation help! 3
Access 2007 "group by" creating problem 4
Quarterly taxes query 2

Top