LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default populate =IF(... dynamically in loop, possible?

I'm trying to calculate percentages that a column of values are of a
single cell value, e.g.
column a contains values 10 through 100
column b will contain the percentage that a is of a cell C6
I'm trying to populate the cell formulas in column B with an =IF(...
formula, is that possible, I tried this

for n = 1 to 10
Cells(n, 2).Formula = "=IF(C6, Cells(n, 1).Value / cells(6,3).value &
, 0)"
next

But that won't work, I've tried a few other things, I want the sheet to
update when different values are entered into C6, with the percentages
if C6 is not empty, and with 0's if c6 is empty.

Does anyone have any suggestions?

TIA,
Mike
 
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
Dynamically populate a Date pulldown menu? Arlen Excel Discussion (Misc queries) 1 July 24th 08 04:20 PM
Dynamically declare and populate variables Gary@Dwight Excel Programming 6 December 5th 07 06:27 PM
Dynamically populate spreadsheets in a workbook peashoe Excel Programming 4 August 8th 07 01:48 PM
Dynamically setting Dimensions in a VBA loop havocdragon Excel Programming 4 September 13th 06 08:34 AM
Populate workbook dynamically?? Dave Cleghorn Excel Programming 4 August 30th 06 04:20 PM


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