Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 03-17-2018, 03:50 AM
xor xor is offline Create a sequence of numbers using a formula Windows 10 Create a sequence of numbers using a formula Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

If you want the numbers between value in A1 and value in B1 as an array, try:

=ROW(INDIRECT(A1&":"&B1))

This formula does not require array-entering.


Select the cell with above formula and press F2, then F9 and you should see the numbers between 88 and 93 if you have 88 in A1 and 93 in B1.
  #2  
Old 03-17-2018, 09:13 AM
14spar15 14spar15 is offline Create a sequence of numbers using a formula Windows XP Create a sequence of numbers using a formula Office 2000
Advanced Beginner
Create a sequence of numbers using a formula
 
Join Date: Mar 2011
Posts: 97
14spar15 is on a distinguished road
Default

Thanks for taking the time to respond here. I was messing with that approach for hours last night but I don’t have a very good understanding of how arrays work. When I ran that my results were ={88;89;90;91;92;93}. When I record the process for a Macro it at first seems to work but when I change A1 or B1 to another range it does not work. When I look at the recorded code I am getting this.

Sub Macro1()
Range("C1").Select
ActiveCell.FormulaR1C1 = "88;89;90;91;92;93"
Range("D2").Select
End Sub


I tried changing it this and got an error


Sub Macro1()
Range("C1").Select
ActiveCell.FormulaR1C1 = "ROW(INDIRECT(A1&":"&B1))"
Range("D2").Select
End Sub

This was when I was thinking just a simple formula where there is a A1 +1 loop until the results equal B1 then break loop might be easier but it seems like this is way beyond my capabilities also and the formula is not so simple.
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sequence numbers after each print MauricioPillon Excel 0 02-15-2018 08:11 AM
Create a sequence of numbers using a formula Wildcards - Sequence of Numbers at the Beginning of Each Paragraph qubie Word 1 11-30-2017 02:03 PM
How to assign numbers to letters and then create a formula to add them together for a rota Mskapri Excel 6 04-01-2017 03:05 PM
Need Help Deleting Numbers in Hour Format and Numbers in Sequence rsrasc Word VBA 1 10-12-2016 02:49 PM
How to Create a Locked Sequence of Buttons kcackin PowerPoint 0 01-24-2011 02:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft