Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Need Formula to calculate n*'cell value' where n is any integer

I want to create a formula to calculate a formula such as the following:

=($F14+1)/(n*$D14) where n can be any integer from 0 to 20

If will be part of a larger IF statement. How can this be set up? Do I
need to set up a hidden array with the values 0 to 20, but even then, how
would the formula be programmed? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Need Formula to calculate n*'cell value' where n is any integer

How are you deciding which value of n to use in any particular case?

If it is a random choice, then =($F14+1)/(RANDBETWEEN(0,20)*$D14)
but bear in mind that if n is 0 you'll get a divide by zero error.
--
David Biddulph

"Elliott-DECA" wrote in message
...
I want to create a formula to calculate a formula such as the following:

=($F14+1)/(n*$D14) where n can be any integer from 0 to 20

If will be part of a larger IF statement. How can this be set up? Do I
need to set up a hidden array with the values 0 to 20, but even then, how
would the formula be programmed? Thanks.



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
only INTEGER INPUT IN CELL Hunter Excel Worksheet Functions 2 January 7th 07 02:43 PM
Spreadsheet shows the formula in the cell but doesn't calculate mociav Excel Discussion (Misc queries) 5 December 13th 06 12:21 PM
Can you calculate a formula in the same cell where you enter the d Tikki Excel Discussion (Misc queries) 3 December 8th 06 08:12 PM
formula won't calculate unless I click cell steel1960 Excel Worksheet Functions 2 September 8th 06 09:50 PM
X IN A CELL TO CALCULATE A FORMULA JUSTIN Excel Worksheet Functions 1 January 3rd 05 11:08 PM


All times are GMT +1. The time now is 08:51 PM.

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"