OFFSET in a dynamic range that doesn't count zero values

Jayjay2507

New Member
Joined
Oct 29, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello i am to the OFFSET function and i struggle how to find just one formula that doesn't take into account the zero if i use a MIN,MAX,AVERAGE etc with OFFSET. I need my height to be dynamic as well if i change my filter.

You can find the link here of my problem

21/43/egx6.png - Visionneuse Zupimages

So my height need to be the last not empty of the column F and it need to not calcule the zero values in that range . I used the cell G3 to calculate my dynamic height for my offset formula.

I'm not a english native speaker but i use excel in english.

Data rem 2710.xlsx
ABCDEF
1L Type Contrat Bis(Multiple Items)Range Seniority#SPILL!
2ActiveOUIRange Salary17210298,84
3Category(All)
4
5IDSeniorityBase SalarySeniority Base Salary
60000000613,65700013,657,000,00
7000000254,8319684,831,968,00
80000003014,892000,0414,892,000,04
90000004813,967000,0813,967,000,08
100000005313,76700813,767,008,00
110000006013,44816813,448,168,00
12000000841,0300001,030,000,00
130000009112,037000,0812,037,000,08
140000009710,624499,9210,624,499,92
150000018110,4140000,0410,4140,000,04
160000020010,224499,9210,224,499,92
17000002299,9556209,955,620,00
18000002409,8390009,839,000,00
19000002679,5470049,547,004,00
20000002829,470700,049,470,700,04
21000002949,21050009,2105,000,00
22000003398,1360008,136,000,00
23000003428,6770048,677,004,00
24000004057,5421087,542,108,00
25000004254,2300004,230,000,00
26000004598,969999,968,969,999,96
27000004848,5480008,548,000,00
28000005067,152000,087,152,000,08
29000005227,986000,047,986,000,04
30000005367,875999,967,875,999,96
31000005567,6534007,653,400,00
32000005857,248499,927,248,499,92
33000005967,1900007,190,000,00
34000006166,9360006,936,000,00
35000006256,269999,966,269,999,96
360000063620,1179450,0420,1179,450,04
370000064330,810986030,8109,860,00
380000082916,865000,0416,865,000,04
390000084215,817250015,8172,500,00
400000086414,16240014,162,400,00
410000087713,174000,0413,174,000,04
420000087913,0177500,0413,0177,500,04
430000088612,4189999,9612,4189,999,96
440000089612,059000,0412,059,000,04
450000090411,7282799,9211,7282,799,92
460000091211,4122000,0411,4122,000,04
47000010428,750000,048,750,000,04
48000010578,5750008,575,000,00
49000010756,8380046,838,004,00
50000011544,1960004,196,000,00
510000116710,349215,9610,349,215,96
52000011959,5570009,557,000,00
53000012124,352503,964,352,503,96
540000129322,59500422,595,004,00
550000130316,677000,0416,677,000,04
56000013195,857399,965,857,399,96
57000013429,0600009,060,000,00
580000135614,210500014,2105,000,00
590000136211,26000011,260,000,00
60000013739,8710049,871,004,00
61000013749,7620049,762,004,00
62000013759,633433,689,633,433,68
63000013789,5535089,553,508,00
64000013799,3460089,346,008,00
65000013839,0900009,090,000,00
66000013928,4480008,448,000,00
67000014007,8750007,875,000,00
68000014027,8424807,842,480,00
69000014077,3219999,967,3219,999,96
70000014087,3219999,967,3219,999,96
71000014156,3417006,341,700,00
72000014446,438000,046,438,000,04
730000144613,56050413,560,504,00
740000144912,349549,9212,349,549,92
75000015714,3395044,339,504,00
76000015905,969999,965,969,999,96
77000016620,5630000,563,000,00
78000016765,343500,125,343,500,12
79000016935,6810005,681,000,00
80000017175,61320005,6132,000,00
81000017465,31185005,3118,500,00
82000017623,3360003,336,000,00
83000017895,31260005,3126,000,00
84000018575,136202,325,136,202,32
85000018595,138202,245,138,202,24
86000018605,140000,085,140,000,08
87000018775,150000,045,150,000,04
88000018905,058000,085,058,000,08
89000019085,0450005,045,000,00
90000019414,8445084,844,508,00
91000019774,8816004,881,600,00
92000019864,6590044,659,004,00
93000020194,7530044,753,004,00
94000020294,7350044,735,004,00
95000020534,642999,964,642,999,96
96000020683,5420003,542,000,00
97000020704,594999,924,594,999,92
98000020764,556500,084,556,500,08
99000020934,580007,964,580,007,96
100000020984,4900004,490,000,00
101000021184,339999,964,339,999,96
102000021474,337100,044,337,100,04
103000022034,238000,044,238,000,04
104000022144,240677,484,240,677,48
105000022434,146584,244,146,584,24
106000022684,063999,964,063,999,96
107000022774,039638,764,039,638,76
108000022804,0111999,964,0111,999,96
109000022954,0350044,035,004,00
110000023104,0840004,084,000,00
111000023343,999999,963,999,999,96
112000023493,999999,963,999,999,96
113000023623,853500,083,853,500,08
114000023733,82835003,8283,500,00
115000023783,829000,043,829,000,04
116000023923,741000,043,741,000,04
117000024083,7335043,733,504,00
118000024433,5900003,590,000,00
119000024543,530795,963,530,795,96
120000024583,547180,043,547,180,04
121000024593,5721803,572,180,00
122000024603,558400,043,558,400,04
123000024633,5901803,590,180,00
124000024713,541000,043,541,000,04
125000024773,5751803,575,180,00
126000024833,5410043,541,004,00
127000024843,5117999,963,5117,999,96
128000024883,61350003,6135,000,00
129000024893,5825003,582,500,00
130000024903,464999,923,464,999,92
131000025143,535500,083,535,500,08
132000025183,5125179,923,5125,179,92
133000025243,5390003,539,000,00
134000025263,550499,963,550,499,96
135000025303,5480003,548,000,00
136000025373,3174999,963,3174,999,96
137000025393,585000,083,585,000,08
138000025583,3123500,043,3123,500,04
139000025833,3128499,963,3128,499,96
140000025853,3390003,339,000,00
141000026053,384999,963,384,999,96
142000026233,264999,923,264,999,92
143000026433,1610083,161,008,00
144000026463,136999,963,136,999,96
145000026473,038000,043,038,000,04
146000026573,057999,963,057,999,96
147000026633,0400083,040,008,00
148000026683,0430083,043,008,00
149000026783,0340083,034,008,00
150000026932,929499,962,929,499,96
151000026962,4305042,430,504,00
152000026982,1320042,132,004,00
153000027072,929000,042,929,000,04
154000027132,9330002,933,000,00
1551503058312,8170000,0412,8170,000,04
1561504058412,8200000,0412,8200,000,04
157150409098,669500,048,669,500,04
158150609228,344000,048,344,000,04
159151099469,0680049,068,004,00
160151212103,5500043,550,004,00
161151310526,650000,046,650,000,04
162152008669,3950169,395,016,00
163902027222,868000,042,868,000,04
164902027442,7600002,760,000,00
165902027482,8355082,835,508,00
166902027582,739999,962,739,999,96
167902027732,750000,042,750,000,04
168902027752,730999,962,730,999,96
169902027802,640000,082,640,000,08
170902027952,6670082,667,008,00
171902028112,634999,922,634,999,92
172902028402,5420002,542,000,00
173902028532,4900002,490,000,00
174902028582,428999,922,428,999,92
175902028702,4340082,434,008,00
176902028742,4630002,463,000,00
177902028852,347000,042,347,000,04
178902029282,3350042,335,004,00
179902029342,3340082,334,008,00
180902029712,362499,962,362,499,96
181902029752,233999,962,233,999,96
182902029782,2450002,245,000,00
183902029862,2370082,237,008,00
184902029872,2450002,245,000,00
185902029892,2480002,248,000,00
186902029962,2330002,233,000,00
187902030002,2390002,239,000,00
188902030072,264999,922,264,999,92
189902030112,230999,962,230,999,96
190902030192,2300002,230,000,00
191902030202,1100000,082,1100,000,08
192902030252,1350042,135,004,00
193902030322,1114999,962,1114,999,96
194902030372,0700082,070,008,00
195902030382,132000,042,132,000,04
196902030412,0530042,053,004,00
197902030422,1380042,138,004,00
198902030442,050000,042,050,000,04
199902030502,035000,042,035,000,04
200902030612,0110000,042,0110,000,04
201902030682,0630002,063,000,00
202902030702,0380042,038,004,00
203902030722,0430082,043,008,00
204902030842,0540002,054,000,00
205902030891,9450001,945,000,00
206902031001,9123092,041,9123,092,04
207902031091,9300001,930,000,00
208902031151,9470041,947,004,00
209902031171,9300001,930,000,00
210902031231,8350041,835,004,00
211902031301,8320041,832,004,00
212902031411,8950041,895,004,00
213902031451,8400081,840,008,00
214902031521,8480001,848,000,00
215902031611,6650041,665,004,00
216902031641,7520081,752,008,00
217902031711,6570001,657,000,00
218902031891,4300001,430,000,00
219902032061,3400081,340,008,00
220902032281,31200001,3120,000,00
221902032311,3870001,387,000,00
222902032461,2310081,231,008,00
223902032631,2360001,236,000,00
224902032761,1600001,160,000,00
225902032831,1370081,137,008,00
226902032851,0320041,032,004,00
227902032881,0310081,031,008,00
228902032931,0580081,058,008,00
229902033041,0310081,031,008,00
230902033081,0300001,030,000,00
231902033211,0450001,045,000,00
232902033340,9310080,931,008,00
233902033350,9310080,931,008,00
234902033360,9370080,937,008,00
235902033370,9420000,942,000,00
236902033460,9580080,958,008,00
237902033510,9360000,936,000,00
238902033530,931999,920,931,999,92
239902033560,9300000,930,000,00
240902033620,9300000,930,000,00
241902033650,9290040,929,004,00
242902033730,9290040,929,004,00
243902033790,9570000,957,000,00
244902033840,8330000,833,000,00
245902033870,8340080,834,008,00
246902033940,8360000,836,000,00
247902033950,9480000,948,000,00
248902034010,8310080,831,008,00
249902034020,8300000,830,000,00
250902034120,8380040,838,004,00
251902034130,8600000,860,000,00
252902034320,8300000,830,000,00
253902034360,8300000,830,000,00
254902034370,7300000,730,000,00
255902034420,71000080,7100,008,00
256902034500,7369960,736,996,00
257902034660,7350040,735,004,00
258902034700,72200080,7220,008,00
259902034750,6450000,645,000,00
260902034860,6330000,633,000,00
261902034870,6550080,655,008,00
262902034900,6350040,635,004,00
263902034910,6430080,643,008,00
264902034940,6370080,637,008,00
265902034950,5320040,532,004,00
266902035080,5470040,547,004,00
267902035100,5550080,555,008,00
268902035110,5340080,534,008,00
269902035160,539999,960,539,999,96
270902035250,5340080,534,008,00
271902035290,5410040,541,004,00
272902035320,5340080,534,008,00
273902035350,5320040,532,004,00
274902035370,4450000,445,000,00
275902035410,4420000,442,000,00
276902035460,4373200,437,320,00
277902035470,4320040,432,004,00
278902035540,3400080,340,008,00
279902035570,4560040,456,004,00
280902035640,3350040,335,004,00
281902035740,3310080,331,008,00
282902035800,3400080,340,008,00
283902036010,31900080,3190,008,00
284902036030,3330000,333,000,00
285902036040,3320040,332,004,00
286902036050,3320040,332,004,00
Feuil1
Cell Formulas
RangeFormula
F1F1=OFFSET($E$6,,,$G$3,)
F2F2=(SUM(OFFSET($F$6,,,$G$3,)))
E6:F286E6=B6
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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