简体   繁体   中英

Excel - Summing up consecutive values based on drop-down selection

I have a Values like

Month      Price
 Jan        10
 Feb        20
 Mar        30
 ............
 Dec        50

I have a dropdown for selecting month If user pickedup the month Feb then the sum should be displayed as 30

Help me out ! tried a lot with excel function ended up with frustration

Very interesting idea.

在此处输入图片说明

Formula in B1 =SUM(INDIRECT("E1:E"&MATCH(A1,D:D,0)))

Hope this will help you.

ABCDE Feb 30 Month Price Jan 10 Feb 20 Mar 30 Apr 40 May 50 Jun 60 Jul 70 Aug 80 Sep 90 Oct 100 Nov 110 Dec 120

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM