Using Row function i need to find out all the dates

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
944
Office Version
  1. 365
Platform
  1. Windows
Hi,

I need to find dates between 01/07/2020 to 10/07/2020 including both the dates (Like an array spill) using Row Function
@Eric W has used it somewhere i am not able to find the post where he has just selected the two dates in row function

Currently i am using this.
S7_BuiltinFunctions_Start.xlsx
JKL
1210/07/202010/07/2020
1311/07/202024/07/2020
1412/07/2020
1513/07/2020
1614/07/2020
1715/07/2020
1816/07/2020
1917/07/2020
2018/07/2020
2119/07/2020
2220/07/2020
2321/07/2020
2422/07/2020
2523/07/2020
2624/07/2020
Sheet1
Cell Formulas
RangeFormula
J12:J26J12=(ROW(INDIRECT("A1:A"&$L$13-$L$12+1)))-ROW($A$1)+L12
Dynamic array formulas.


Is there any simple way
 

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
I would use Sequence
+Fluff New.xlsm
KLMN
1
210/07/202010/07/2020
311/07/202024/07/2020
412/07/2020
513/07/2020
614/07/2020
715/07/2020
816/07/2020
917/07/2020
1018/07/2020
1119/07/2020
1220/07/2020
1321/07/2020
1422/07/2020
1523/07/2020
1624/07/2020
17
Main
Cell Formulas
RangeFormula
L2:L16L2=SEQUENCE(N3-N2+1,,N2)
Dynamic array formulas.
 
Upvote 0
If you want to use a volatile function then try
=ROW(INDIRECT("A"&N2):INDIRECT("A"&N3))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You can get rid of one of the INDIRECTs like this:

=ROW(INDIRECT(N2&":"&N3))

You don't need the preceding A either. However, if you have the new SEQUENCE function (I still don't!), that's definitely a better choice.
 
Upvote 0
This is what i was searching for. Now i have 3 tricks

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,916
Members
449,093
Latest member
dbomb1414

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