Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
andrewm
 
Posts: n/a
Default sequence of numbers


how do I do a formula to automatically put numbers in a cell

if a1 = 1

I would like a2, a3, a4, a5, a6..... to be 2,3,4,1,2,3,4.....

how do I make the sequence change from 4 back to 1

ie. a1 maybe 3

thus a2,a3,a4,a5,6......would be 4,1,2,3,4,12.......

what would the formulas be in the cells


andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=484630

  #2   Report Post  
Paul Sheppard
 
Posts: n/a
Default sequence of numbers


andrewm Wrote:
how do I do a formula to automatically put numbers in a cell

if a1 = 1

I would like a2, a3, a4, a5, a6..... to be 2,3,4,1,2,3,4.....

how do I make the sequence change from 4 back to 1

ie. a1 maybe 3

thus a2,a3,a4,a5,6......would be 4,1,2,3,4,12.......

what would the formulas be in the cells


andrewm


Hi Andrew

In B1 put this formula =IF(A1<4,A1+1,A1-3) and drag across as far as
required


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=484630

  #3   Report Post  
Cutter
 
Posts: n/a
Default sequence of numbers


Same result with different approach:

In A2 type: =IF(MOD(A1+1,4)=0,4,MOD(A1+1,4))

and drag copy down as far as necessary


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=484630

  #4   Report Post  
Dana DeLouis
 
Posts: n/a
Default sequence of numbers

In A2 type: =IF(MOD(A1+1,4)=0,4,MOD(A1+1,4))

I think this may be equivalent:
=MOD(A1,4)+1

However, another option might be:
A1: =MOD(ROW()-1,4)+1

...and copy down
HTH
--
Dana DeLouis
Win XP & Office 2003


"Cutter" wrote in
message ...

Same result with different approach:

In A2 type: =IF(MOD(A1+1,4)=0,4,MOD(A1+1,4))

and drag copy down as far as necessary


--
Cutter
------------------------------------------------------------------------
Cutter's Profile:
http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=484630



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to look for a sequence of numbers in a string? brett Excel Discussion (Misc queries) 2 October 27th 05 01:44 AM
average numbers in sequence bill gras Excel Worksheet Functions 11 October 26th 05 08:20 AM
sequence numbers su su Excel Discussion (Misc queries) 4 May 12th 05 02:51 AM
Finding numbers missing from a sequence andy Excel Discussion (Misc queries) 3 April 8th 05 04:16 PM
Repeating a sequence of numbers down a column Nexan Excel Discussion (Misc queries) 2 March 4th 05 05:39 PM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"