how to get sum by using automatic range changing

FMHasan

New Member
Joined
Nov 2, 2021
Messages
36
Office Version
  1. 2016
Platform
  1. Windows
Sum.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
210Need formula like for Day 10 to 20 by automatic range system in C Column
310 Days SumDays
4Client nameTotalTotal 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th 29th 30th 31st
5Square Toiletries Ltd--
6Square Food & Beverage Ltd-20,703,882.00
7Square Pharmaceuticals Ltd2,396,000.002,396,000.00
8Square Hospitals Ltd-
9Square Textiles Ltd-4,831.50
10Square Agrovet Ltd-
11Aegis-
12Tateeghar-18,000.00
13Square Fashions Ltd-
14Sun Communication Ltd-3,982,765.81
15Pran-
16Unitrend Limited-
17Option Advertising-
18Bangas Ltd-
19Electromart Ltd-970,125.00719,950.00
20Pioneer Insurace Ltd-
21Social Marketing Company Ltd-
22Akij Group-90,880.00
23Isphani Group447,097.00402,089.0045,008.009,823,093.00
24Bata Shoe-
25Singer Bangladesh Ltd-
26Plan Bangladesh Ltd-
27Brac Aarong-
28Mi Cement-
29Sohoz.com-
30Anwar Group-
31Asian Paints BD Ltd-
32HKG Steel Mills Ltd-
33Holcim Cement BD Ltd-2,001,562.30
34Heidelberg Cement BD Ltd5,786,987.005,786,987.002,930,482.19
35Aspire to Innovet-481,534.00
36British Council-
37World Food Programme-
38GPH Ispat Ltd-
39Concord Group-
40Butterfly Marketing Ltd-
41Sheba Plartform Ltd-
42Banglalink Digital Communication -
43Abul Khair Group-
44Beximco Communication Ltd-1,520,852.00
45Doodle31,887.2531,887.25
46Intelzaa-
47Arla Foods Bangladesh Ltd-
48Savoy-
49UCB Fintech Company (Upay)-
50Walton Digitech Indulstries Limited1,032,210.001,032,210.00
51Bread & Butter-
52Bengal Media Corporation-
53World Vision-
54The Stractural Engineers Ltd-
55International Television Channel Ltd1,120,000.001,120,000.00
56Channel i (Impress Teleflim)-
57Shomvob Health Ltd-
58Disrupt-
59New Track (SD Rubel)315,000.00315,000.00
60Berger Paints Bangladesh Limited5,812,449.835,737,449.8375,000.00
61Others-
6216,941,631.08-##11,926,525.8345,008.0075,000.003,743,210.001,151,887.25##4,970,890.811,525,683.502,001,562.303,650,432.19###########--10,395,507.00-------------
63
64
65
66
67
68
February 2023 (3)
Cell Formulas
RangeFormula
C5C5=SUM(D5:AH5)
H23H23=4091+40917
U35U35=167819+313715
B5:B62B5=SUM(OFFSET(D5:AH5,0,0,1,$B$2))
D62:AH62D62=SUM(D5:D61)
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
What do you mean by automatic range changing?
What do you want to happen when you enter a new value some where ?
  1. Identify that cell you change,
  2. identify the cell(s) that have a calculation that that cell affects,
  3. what are the calculations (or what is a clear description of the output you want to see?)
 
Upvote 0
What do you mean by automatic range changing?
What do you want to happen when you enter a new value some where ?
  1. Identify that cell you change,
  2. identify the cell(s) that have a calculation that that cell affects,
  3. what are the calculations (or what is a clear description of the output you want to see?)
My Calculation Range Is D6:AH, Here total 31 column. I want to calculate Sum value suppose F6:Z6 range. I will put 1st ranges (6) except F text in A2 Column and last Ranges value (6) except Z in B2 column. and by changing this cell value sum of those range will be change. Result should be in column C6. Is it possible ?
 
Upvote 0
  1. Identify that cell you change,----- A2 & B2
  2. identify the cell(s) that have a calculation that that cell affects,----- D6:AH6
  3. what are the calculations (or what is a clear description of the output you want to see?)------ SUM OF THOSE COLUMN
 
Upvote 0
xl2bb won't allow me to copy your entire range back into the post. But this should give you an idea.
I'm not a fan of offset, but it works well here, but I also did it using INDEX.

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
1Start DayEnd Day
211th21stNeed formula like for Day 10 to 20 by automatic range system in C Column
310 Days SumDays
4Client nameTotalTotal1st2nd3rd4th5th6th7th8th9th10th11th12th13th14th15th16th17th18th19th20th21st22nd23rd24th25th26th27th28th29th30th31st
5Square Toiletries Ltd65123456789101112131415
6Square Food & Beverage Ltd65123456789101112131415
7Square Pharmaceuticals Ltd02396000
8Square Hospitals Ltd0
9Square Textiles Ltd4831.54831.5
10Square Agrovet Ltd0
11Aegis0
12Tateeghar1800018000
13Square Fashions Ltd0
14Sun Communication Ltd3982765.813982765.81
15Pran0
Sheet1
Cell Formulas
RangeFormula
B5B5=SUM(INDEX($D$5:$AH$5,1,MATCH($A$2,$D$4:$AH$4,0)): INDEX($D$5:$AH$5,1,MATCH($B$2,$D$4:$AH$4,0)-1))
B6:B15B6=SUM(OFFSET(D6,0,MATCH($A$2,$D$4:$AH$4,0)-1,1,MATCH($B$2,$D$4:$AH$4,0)-MATCH($A$2,$D$4:$AH$4,0)))
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top