formulas

K

Kay

Cell A1 have May 5, 2006(start date)
cell A2:L2 have month from January to december
In cell A3:L3 and A4:L4 I have numbers under each months
in cell A5:L5 I have the fomula =A3-A4 I do this across to L3-L4
The only problem I need a formula to Make E5 which is under the month of may
1 or less than 1(it cannot go over 1) the other cells can be flexible
This formula should be base one cell A1 Start date.
 
K

Kay

I want a formula base on cell A1(start month)
this formula should only be under May in E5
 
M

MyVeryOwnSelf

I want a formula base on cell A1(start month)
this formula should only be under May in E5

I'm guessing that what you mean by
"base on cell A1"
is
"the month of A1 determines which column cannot go over 1."

Maybe it would help to put this in A5 and extend it to L5:
=IF(MONTH($A$1)=COLUMN(), MIN(A3-A4,1), A3-A4)
 
K

Kay

That is correct; I need to sum each column then over ride that one month
which reference to A1
 
J

Joel

You can create a date using the Row two name. for example

=DateValue("January 1, 2009")
=DateValue(A2&" 1, "&year(now())


Now you can compare the month in A1 with the month in the above formula

if(month(A1)=DateValue(A2&" 1, "&year(now()),True,false)
 

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