How do I sum and add * on each side based on value in excel?

G

Guest

I have four columns of data. The first is the maximum no. allowed, the second
is the last period total, the third is the current period total and the
fourth is the sum of two and three. The typical sum function works fine until
the fourth column equals the first, this is where I want to place an asterisk
before and after the sum. This would indicate that the vlue has reached it's
max.

Is this possible?

Thanks.
 
G

Guest

Ken,
Thx for the reply.
When I apply the formula it returns *0* whether column D has reached it's
max. or not.

The closest I have gotten is; =IF(B1+C1=A1,"Maximum Reached",SUM(B1+C1)) .

This is not what I want but maybe the only solution.
 
G

Guest

Earl,
Sorry, I guess I didn't understand your data/question. Could you please put
up a few sample rows and your expected result in column D to look at?
 
G

Guest

JulieD:

The formula is exactly what I was looking for.

One follow up thought: Is there a way to amend the formula to 'flag' if the
values entered exceed the maximum?

Thx.
Earl
 
J

JulieD

Hi Earl

glad we're getting there, how about
=IF(COUNT(A1:C1)=3,IF(B1+C1>A1,"Exceeded",IF(B1+C1=A1,"*"&B1+C1&"*",B1+C1)),B1+C1)
 

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

Top