Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drop Down List Dependant Formula

40 views
Skip to first unread message

garygoodguy

unread,
Dec 17, 2012, 11:10:57 PM12/17/12
to

Hi,

I have a drop down list where a user can select the month (cell I6).
I also have a data set on another sheet like this:

jul;aug;sep;oct;nov...Total;YTD Total
100;250;350;420;530...Total;YTD Total

Assume date range starts in A1 and figures start in A2. Also, the fiscal
year starts in July, not January.

What I'd like to have happen is that depending on the month selected
from the list - for that selection to drive a YTD sum
calculation/function, i.e. If the user selects October from dropdown
list - then the YTD total sum will only include months upto and
including October only (i.e. July, Aug, Sep, Oct).

Thanks in advance.
Happy to help with further details.




--
garygoodguy

MyVeryOwnSelf

unread,
Dec 18, 2012, 2:50:58 PM12/18/12
to
> I have a drop down list where a user can select the month (cell I6).
> I also have a data set on another sheet like this:
>
> jul;aug;sep;oct;nov...Total;YTD Total
> 100;250;350;420;530...Total;YTD Total
>
> Assume date range starts in A1 and figures start in A2. Also, the fiscal
> year starts in July, not January.
>
> What I'd like to have happen is that depending on the month selected
> from the list - for that selection to drive a YTD sum
> calculation/function, i.e. If the user selects October from dropdown
> list - then the YTD total sum will only include months upto and
> including October only (i.e. July, Aug, Sep, Oct).

Try this for the YTD total:
=SUM(OFFSET($A$2,0,0,1,MATCH(I6,A1:L1,0)))
This assumes that the same month name spellings are used in I6 and A1:L1.

Modify as needed.

garygoodguy

unread,
Dec 19, 2012, 7:27:36 AM12/19/12
to

Thanks anyway. Have figured it out from another forum.
Answer for those interested:

=SUM("start of data range":INDEX("start of data range:end of data
range,MATCH(dropdown list with months,start of month range:end of month
range,0)))




--
garygoodguy
0 new messages