How to invert this formula

LuGyver

Board Regular
Joined
Mar 13, 2014
Messages
88
Office Version
  1. 2007
Platform
  1. Windows
Excel 2007 using Win10.
Trying to invert the sheet so the dates can be newest (top) to oldest (bottom) but the formula in columns N-R which counts the skips (blank cells) between won't cooperate.

Also, if there is a way to completely eliminate columns H4:L27 (where H2:L2 need to be anchors) that would be great, but it's not a big deal.
No VBA
TY, Hope I did XL2BB correctly

Book1
H
21
Sheet1
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Your xl2bb mini**** only has one cell provided. Please select all the range (or a representative portion) before you click on "Mini Sheet"

Thanks in advance.
 
Upvote 0
Thank you! I thought it looked too small

Book1
ABCDEFGHIJKLMNOPQR
1DateAll3^32^21^10Eliminate if possibleCounts the Skips
211111
3     
48/17/2023767868111  111  
58/18/202387807083821111100022
68/19/2023727611   00   
78/20/202382852583871111100111
88/21/202344424249491111100000
98/22/202370733111  000  
108/23/202340444111  000  
118/24/2023808311   00   
128/25/2023151    0    
138/26/2023          
148/27/2023393511   12   
158/28/2023515616111  004  
168/29/202395905094901111100077
178/30/2023989811   00   
188/31/2023232434271111 0011 
199/1/202344404049491111100002
209/2/2023231    0    
219/3/2023681    0    
229/4/2023          
239/5/2023221    1    
249/6/2023651    0    
259/7/2023          
269/8/2023282080271111 1666 
279/9/2023191898111  000  
28
Sheet1
Cell Formulas
RangeFormula
N3:R3N3=IF(H3=1,IF(H3<>"",COUNTBLANK(INDEX(H2:H$16,MATCH(9.99999999999999E+307,H2:H$16)):H3),""),"")
N4:R27N4=IF(H4=1,IF(H4<>"",COUNTBLANK(INDEX(H$2:H3,MATCH(9.99999999999999E+307,H$2:H3)):H4),""),"")
H4:L27H4=IF(B4="","",1)
 
Upvote 0
Is this possible?
I was just trying a couple different ways to select and sort. I can't seem to get it to work either. I tried sorting the entire area, then only the first few areas where you have the data. Hopefully other forum members will pop in.

Have you considered having another section with formulas pointing to this as a data source?
 
Upvote 0
I was just trying a couple different ways to select and sort. I can't seem to get it to work either. I tried sorting the entire area, then only the first few areas where you have the data. Hopefully other forum members will pop in.

Have you considered having another section with formulas pointing to this as a data source?
Perhaps that may work but I'm not sure how to set it up. I'm open to examples.
Thank you for trying.
 
Upvote 0
There are 2 sheets, one for A-Z and other for Z-A. Choose which one that work.
Both use same formula. Just sort 1st table A-Z and Z-A.


Book1
ABCDEFGHIJKL
1DateAll3^32^21^10Counts the Skips
2
3
48/17/2023767868111  
58/18/2023878070838200022
68/19/2023727600   
78/20/2023828525838700111
88/21/2023444242494900000
98/22/202370733000  
108/23/202340444000  
118/24/2023808300   
128/25/2023150    
138/26/2023     
148/27/2023393512   
158/28/2023515616004  
168/29/2023959050949000077
178/30/2023989800   
188/31/2023232434270011 
1909/01/2023444040494900002
2009/02/2023230    
2109/03/2023680    
2209/04/2023     
2309/05/2023221    
2409/06/2023650    
2509/07/2023     
2609/08/2023282080271666 
2709/09/2023191898000  
A-Z
Cell Formulas
RangeFormula
H4:L27H4=IF(B4="","",IF(B3<>"",0,ROW()-IFERROR(LOOKUP(2,1/(B$3:B3>0),ROW(B$3:B3)),2)-1))


Book1
ABCDEFGHIJKL
1DateAll3^32^21^10Counts the Skips
2
3
409-Sep191898111  
508-Sep282080270002 
607-Sep     
706-Sep651    
805-Sep220    
904-Sep     
1003-Sep681    
1102-Sep230    
1201-Sep444040494906669
1331-Aug232434270000 
1430-Aug989800   
1529-Aug959050949000112
1628-Aug515616000  
1727-Aug393500   
1826-Aug     
1925-Aug151    
2024-Aug808302   
2123-Aug40444004  
2222-Aug70733000  
2321-Aug444242494900077
2420-Aug828525838700000
2519-Aug727600   
2618-Aug878070838200111
2717-Aug767868000  
Z-A
Cell Formulas
RangeFormula
H4:L27H4=IF(B4="","",IF(B3<>"",0,ROW()-IFERROR(LOOKUP(2,1/(B$3:B3>0),ROW(B$3:B3)),2)-1))
 
Upvote 0
There are 2 sheets, one for A-Z and other for Z-A. Choose which one that work.
Both use same formula. Just sort 1st table A-Z and Z-A.


Book1
ABCDEFGHIJKL
1DateAll3^32^21^10Counts the Skips
2
3
48/17/2023767868111  
58/18/2023878070838200022
68/19/2023727600   
78/20/2023828525838700111
88/21/2023444242494900000
98/22/202370733000  
108/23/202340444000  
118/24/2023808300   
128/25/2023150    
138/26/2023     
148/27/2023393512   
158/28/2023515616004  
168/29/2023959050949000077
178/30/2023989800   
188/31/2023232434270011 
1909/01/2023444040494900002
2009/02/2023230    
2109/03/2023680    
2209/04/2023     
2309/05/2023221    
2409/06/2023650    
2509/07/2023     
2609/08/2023282080271666 
2709/09/2023191898000  
A-Z
Cell Formulas
RangeFormula
H4:L27H4=IF(B4="","",IF(B3<>"",0,ROW()-IFERROR(LOOKUP(2,1/(B$3:B3>0),ROW(B$3:B3)),2)-1))


Book1
ABCDEFGHIJKL
1DateAll3^32^21^10Counts the Skips
2
3
409-Sep191898111  
508-Sep282080270002 
607-Sep     
706-Sep651    
805-Sep220    
904-Sep     
1003-Sep681    
1102-Sep230    
1201-Sep444040494906669
1331-Aug232434270000 
1430-Aug989800   
1529-Aug959050949000112
1628-Aug515616000  
1727-Aug393500   
1826-Aug     
1925-Aug151    
2024-Aug808302   
2123-Aug40444004  
2222-Aug70733000  
2321-Aug444242494900077
2420-Aug828525838700000
2519-Aug727600   
2618-Aug878070838200111
2717-Aug767868000  
Z-A
Cell Formulas
RangeFormula
H4:L27H4=IF(B4="","",IF(B3<>"",0,ROW()-IFERROR(LOOKUP(2,1/(B$3:B3>0),ROW(B$3:B3)),2)-1))
Curious. The Main Sheet (a massive sheet with tons more referenced data where the snip of XL2BB is located) ...where there's a "radio button" to push rows down and then copies the formula from those rows back up for new data entry.
To comprehend, I would make two new sheets with the A-Z and Z-A then link the table of choice to the Main Sheet, but I'm just not sure how the two new sheet would update based on the main sheet's data.
If I could wrap my head around that concept it could work but for now it's messing with me. lol out of the pan into the fire so to speak
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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