Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default excel loop in cell formula

hi all,

is there a loop structure of some sort that can be used in cell formulas?

ie
=for(from,to,loop_calculation)

or something similar?

i searched through the online help and on the web but all i came up with was
vba loops

any help is greatly appreciated!

thanks!!

J
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default excel loop in cell formula

Arrayformulas will do something like that:

=SUM(--(A1:A103))

Entered with Ctrl+shift+Enter rather than just enter

would get the count of cells in A1:A10 that have a value greater than 3.

the -- just converts the boolean results to 0 or 1's so they can be summed.

put the formula in a cell and enter with Ctrl+Shift+enter. Now select the
cell and highlight A1:A103 in the formula bar. Hit F9 to evaluate that
section. You should get an array of True and False values. hit escape.
Now highlight --(A1:A103) and hit F9. You should see an array of zeros
and 1's. Hit escape to return to the formula.


--
Regards,
Tom Ogilvy


"Gixxer_J_97" wrote in message
...
hi all,

is there a loop structure of some sort that can be used in cell formulas?

ie
=for(from,to,loop_calculation)

or something similar?

i searched through the online help and on the web but all i came up with

was
vba loops

any help is greatly appreciated!

thanks!!

J



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
Too Many IF Statements Nesting Error (Excel Formula Loop w/o VBA) retailmessiah[_2_] Excel Worksheet Functions 7 February 10th 10 06:52 PM
loop a list with the IF formula ufo_pilot Excel Discussion (Misc queries) 1 January 21st 08 10:10 PM
Loop for a Complex Formula monir Excel Programming 3 March 26th 05 07:37 PM
Excel formula similar to a loop in Basic? Cashtime Excel Worksheet Functions 2 February 6th 05 07:53 PM
Loop within Excel Formula? Dan[_29_] Excel Programming 3 December 23rd 03 10:26 PM


All times are GMT +1. The time now is 12:26 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"