Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Is there such a function in Excel: Circular(B1, 2, 5) which will start in B1 printing twice numbers from 1 to 5, as follows: 1 2 3 4 5 1 2 3 4 5 If not, how such thing is doable? Thanks, Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thu, 6 Jan 2011 11:00:58 -0800 (PST), Mike wrote:
Hi, Is there such a function in Excel: Circular(B1, 2, 5) which will start in B1 printing twice numbers from 1 to 5, as follows: 1 2 3 4 5 1 2 3 4 5 If not, how such thing is doable? Thanks, Mike Functions can only return results to the cell in which they are located. In order to accomplish this task, you would need to either use a VBA macro that calls for data input (eg, the starting cell, number of cycles, and top number) or, if your starting cell will always be B1, you could set up formulas in column B going down as far as you might have results. The VBA Macro would probably be more flexible. In either event, it would be useful to know the range of possible parameters before starting a project like this. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 6, 2:07*pm, Ron Rosenfeld wrote:
On Thu, 6 Jan 2011 11:00:58 -0800 (PST), Mike wrote: Hi, Is there such a function in Excel: Circular(B1, 2, 5) which will start in B1 printing twice numbers from 1 to 5, as follows: 1 2 3 4 5 1 2 3 4 5 If not, how such thing is doable? Thanks, Mike Functions can only return results to the cell in which they are located. In order to accomplish this task, you would need to either use a VBA macro that calls for data input (eg, the starting cell, number of cycles, and top number) or, if your starting cell will always be B1, you could set up formulas in column B going down as far as you might have results. The VBA Macro would probably be more flexible. In either event, it would be useful to know the range of possible parameters before starting a project like this.- Hide quoted text - - Show quoted text - What formula can be used to initiate the circularity? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Mike" wrote in message
... On Jan 6, 2:07 pm, Ron Rosenfeld wrote: On Thu, 6 Jan 2011 11:00:58 -0800 (PST), Mike wrote: Hi, Is there such a function in Excel: Circular(B1, 2, 5) which will start in B1 printing twice numbers from 1 to 5, as follows: 1 2 3 4 5 1 2 3 4 5 If not, how such thing is doable? Thanks, Mike Functions can only return results to the cell in which they are located. In order to accomplish this task, you would need to either use a VBA macro that calls for data input (eg, the starting cell, number of cycles, and top number) or, if your starting cell will always be B1, you could set up formulas in column B going down as far as you might have results. The VBA Macro would probably be more flexible. In either event, it would be useful to know the range of possible parameters before starting a project like this.- Hide quoted text - - Show quoted text - What formula can be used to initiate the circularity? --- It's difficult to grasp just what you are wanting. From VBA, perhaps the Range.AutoFill Method will do what you are asking. As an aside, it's generally considered bad form to ask the same question in different groups under different Subject Lines (Multi-posting). I don't recall for sure, but I believe that Google Groups will allow you to cross-post, which is acceptable. When cross-posting, replies from one group also show up in the other group, so everyone has the opportunity to see the entire discussion thread. -- Clif McIrvin (clare reads his mail with moe, nomail feeds the bit bucket :-) |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is not exactly what you asked for, but maybe you can make use of it.
Put this formula in B1.. =MOD(ROW(A1)-1,5)+1 and copy it down for 10 rows. Rick "Mike" wrote in message ... Hi, Is there such a function in Excel: Circular(B1, 2, 5) which will start in B1 printing twice numbers from 1 to 5, as follows: 1 2 3 4 5 1 2 3 4 5 If not, how such thing is doable? Thanks, Mike |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thu, 6 Jan 2011 12:16:30 -0800 (PST), Mike wrote:
In either event, it would be useful to know the range of possible parameters before starting a project like this.- Hide quoted text - - Show quoted text - What formula can be used to initiate the circularity? What is the extent of possible parameters? e.g. cell to start, number of repetitions, maximum number? |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 6, 6:55*pm, Ron Rosenfeld wrote:
On Thu, 6 Jan 2011 12:16:30 -0800 (PST), Mike wrote: In either event, it would be useful to know the range of possible parameters before starting a project like this.- Hide quoted text - - Show quoted text - What formula can be used to initiate the circularity? What is the extent of possible parameters? *e.g. cell to start, number of repetitions, maximum number? Rick formula above worked well, Thanks all....Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Adding a custom function to the default excel function list | Excel Programming | |||
When I Import an Access Table With an Excel Function in a Cell it Displays as Text not as a Function in Excel | Excel Programming |