Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Is there such an Excel Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,045
Default Is there such an Excel Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Is there such an Excel Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default Is there such an Excel Function?

"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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Is there such an Excel Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,045
Default Is there such an Excel Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Is there such an Excel Function?

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
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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM
Adding a custom function to the default excel function list DonutDel Excel Programming 3 November 21st 03 03:41 PM
When I Import an Access Table With an Excel Function in a Cell it Displays as Text not as a Function in Excel Niek Otten Excel Programming 2 September 18th 03 03:55 AM


All times are GMT +1. The time now is 09:37 PM.

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

About Us

"It's about Microsoft Excel"