![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 5
|
Hello,
I've got a row with YES or NO in every cells and I would like to sum up all the values under the NOs with the first Yes, until it reaches the next YES. How can it be done? Ex. YES NO NO NO ¦YES NO NO ¦YES... Values 5 5 10 10 ¦15 10 15 ¦5 >Result 30 ¦40 ¦... Hope you understand. Thank you in advance for you help. Fred. |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
In A3 enter and copy across till H3: =IF(A1="YES",SUM(A$2:INDIRECT(ADDRESS(2,MATCH(A1,B1:$H$1,0)+COLUMN()-1))),"") Aladin |
|
|
|
|
|
|
#3 | ||
|
New Member
Join Date: Mar 2002
Posts: 5
|
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|