offset the formula,1 cell below to start calculation

ibmy

Board Regular
Joined
Mar 4, 2020
Messages
134
Office Version
  1. 2016
Platform
  1. Windows
Hi Experts,

I been thinking and try change current formula but not succesful to meet my need.

Current Formula : Start from currrent cell

Book1
GIJ
1datatotalCount
2
30.632
40.1
50.8
60.3
Sheet3
Cell Formulas
RangeFormula
J3J3=IF(I3="","",COUNTIF(INDEX(G:G,ROW()+I3-1):G3,">0.5"))


The best solution I have tried so far : but the result still not same as row as value in Column J
I enter formula below row of value Column I in Column J, and change the formula from G3 to G4

Book1
GIJ
1datatotalCount
2
30.63
40.11
50.8
60.3
Sheet8
Cell Formulas
RangeFormula
J4J4=IF(I3="","",COUNTIF(INDEX(G:G,ROW()+I3-1):G4,">0.5"))


This is my expected result :

Book1
GIJ
1datatotalExpected Result
2
30.631
40.1
50.8
60.3
Sheet7

How to get this result?

Sample taken from 250k-300k row data.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Are you looking for something like this?

Excel Formula:
=IF(I3="","",COUNTIF(OFFSET(J3,1,-3,I3),">0.5"))

Note that OFFSET is not usually recommended because it is a volatile function. It won't store the values which may cause your computer to spend a noticeable time doing recalculations every time you try to change a cell.
 
Upvote 0
Solution
@Flashbond Thanks for the formula, it works.

I have 2 questions.

1) Does the formula you given is not recommended since it has OFFSET function?
If so, is there any other formula better than current formula that not use OFFSET function?

Current formula is fine for 250k-300k row data.

2 ) If my Data store in Column F, Total in Column K and Result in Column N,
Does this a correct formula I edited?

Book1
FGHIJKLMN
1datatotalResult
2
30.631
40.1 
50.8 
60.3 
70 
80.4 
91.2 
100.143
110.1 
120.6 
130.6 
140.6 
150.6 
Sheet12
Cell Formulas
RangeFormula
N3:N15N3=IF(K3="","",COUNTIF(OFFSET(N3,1,-8,K3),">0.5"))
 
Upvote 0
Your formula seems to be ok.

I am sure there must be a better solution but I don't know. Maybe someone may comes up with a better solution.
 
Upvote 0

Forum statistics

Threads
1,223,867
Messages
6,175,069
Members
452,611
Latest member
bls2024

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