×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Excel Formula

Excel Formula

RE: Excel Formula

Arv,

I think that unless you INSERT a column (D), you'll have a circular reference.

My formula
E21: =IF($A21>E$19,0,IF($A21=E$19,$B21,IF(SUM($D21:D21)<$B21*$C21,$B21,0)))

You can make the ZEROs disappear using a Conditional Format.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel Formula

Here's your workbook.

BTW, if...
E1: 31-Jan-2023
...then...
F1: =DATE(YEAR(E1),MONTH(E1)+2,0)-1
...and COPY/PASTE across

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel Formula

(OP)
Thanks Skip. Awesome.

What if I have date 31-January-2021 in cell A15?

The expected outcome is 0.

Thanks,
arv

RE: Excel Formula

You didn't include a requirement for a date previous to the minimum date in the display range.

You'll have to wait until the Super Bowl is over--ie. Probably tomorrow.o

Why don't you take a crack at it.

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel Formula

(OP)
Hi Skip
I think I can add another column to overcome this problem.

I just realized I will have negative numbers in column B and the formula needs to be adjusted.

Thanks,
arv

RE: Excel Formula

Revised formula
if
Column A Period less than min Row 1 period OR
Column A Period greater than than max Row 1 period OR
then result is ZERO.

Accommodated negative amounts.

=IF(OR($A3>E$1,$A3<MIN($1:$1),$A3>MAX($1:$1)),0,IF($A3=E$1,$B3,IF(ABS(SUM($D3:D3))<ABS($B3*$C3),$B3,0)))

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel Formula

(OP)
Awesome, Thanks heaps Skip.

RE: Excel Formula

In between snaps.🫡🏈

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

RE: Excel Formula

(OP)
Enjoy the game 😀.

RE: Excel Formula

(OP)
Yikes, the only issue is when its a negative amount, it extends more than the # of times.

RE: Excel Formula

(OP)
Accommodated negative amounts.
If negative amount. It only shows in one column.

=IF(OR($A3>E$1,$A3<MIN($1:$1),$A3>MAX($1:$1)),0,IF($A3=E$1,$B3,IF(ABS(SUM($D3:D3))<$B3*$C3),$B3,0)))


I tried adding Abs below but it extends more than # Of times.

=IF(OR($A3>E$1,$A3<MIN($1:$1),$A3>MAX($1:$1)),0,IF($A3=E$1,$B3,IF(ABS(SUM($D3:D3))<ABS($B3*$C3),$B3,0)))

Thanks,
arv

RE: Excel Formula

(OP)
Thanks heaps. I had one closing bracket in the sum section and 2 closing brackets after.

I shall leave you to enjoy the game.

Much appreciated 👍👍👍.

Regards
arv

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close