![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 3
|
I want to total columns of the same type that are on a different worksheet and they are B3, B13, B23, B33, B43....... because
B?3 are always going to be one type. I would think something like =sum(B*3) Is this possible?? Please help! Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Ontario
Posts: 52
|
do you want to "total the columns" individually, or are you trying to SUM them all together?
is there a set number of B_3 columns? if so, maybe you could name them as ranges.... |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
There is not a set range of B_3 but I want a complete total of all B_3's any other idea?
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
=SUMPRODUCT((RIGHT(ROW(B3:B23))+0=3)*(B3:B23))
But, why not simply =SUM(B3,B13,B23) ? |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
That my be the answer but it is B_3 to the infinate number to typing/clicking up to B1993 eventually may not be enough?
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
Aladin |
|
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
Why not simply =SUMPRODUCT((RIGHT(B3:B23)="3")*(B3:B23)) after all it is only a string we are dealing with at that point Please advise if there is a specific advantage to converting "3" into a numeric digit with "3"+0 Your insightful solutions are always a delight!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
|
#8 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
=SUMPRODUCT((RIGHT(ROW(B3:B23))+0=3)*(B3:B23)) to =SUMPRODUCT((RIGHT(ROW(B3:B23))+0=A1)*(B3:B23)) where A1 houses 3. Hope this sounds convincing Aladin |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|