Counting backwards - Google Sheets

Keshek

New Member
Joined
Apr 14, 2023
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have been trying to automate an excel sheet for my old man and have run into some trouble.

At random intervals there will be input numbers the second column, and im trying to figure out how to make the first column divide that number by the amount of blank cells since last entry.

25.14
25.141.00
#REF!
#REF!
#REF!
#REF!
#REF!
#REF!
#REF!
#REF!192.00


=IF(NOT(ISBLANK(U132)),U132/COUNTBLANK($T$2:T131),T133)

That is the formula i have been trying to use. But i get a reference error when the same thing is in the above cell.

Any input would be appriciated.

Also thought about making it count in row 2, since that would probably be easier, but it would have to count backwards from new input to last input.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
For Excel 2016 this should work.
Fluff.xlsm
TU
1ab
20.5
30.51
424
524
624
724
824
924
1024
1124192
12 
Master
Cell Formulas
RangeFormula
T2:T12T2=IF(U1="",T1,IFNA(INDEX(U2:U100,MATCH(TRUE,U2:U101<>"",0))/MATCH(TRUE,U2:U101<>"",0),""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
For Excel 2016 this should work.
Fluff.xlsm
TU
1ab
20.5
30.51
424
524
624
724
824
924
1024
1124192
12 
Master
Cell Formulas
RangeFormula
T2:T12T2=IF(U1="",T1,IFNA(INDEX(U2:U100,MATCH(TRUE,U2:U101<>"",0))/MATCH(TRUE,U2:U101<>"",0),""))
Press CTRL+SHIFT+ENTER to enter array formulas.

Seems to work as I intended, is there a way to substract 1 from the actual cell count since my result should be 27.43 :)

TY in advance for great help.
 
Upvote 0
How about
Excel Formula:
=IF(U1="",T1,IFNA(INDEX(U2:U100,MATCH(TRUE,U2:U101<>"",0))/(MATCH(TRUE,U2:U101<>"",0)-1),""))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,936
Messages
6,175,507
Members
452,650
Latest member
Tinfish

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