LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Jody
 
Posts: n/a
Default Select Case Options

Hi,
Apart from making really long hard to read If statements, are they any
options open to me?
I do not use excel a lot, so i may be missing something obvious.
I was thinking the code could be made into a custom sub/macro, but not sure
if that's the way to go.

Any advice?

Thanks!
jody'

i want c cells contents to be based on the b cell as below

for b1... - 1000
select case row.column
case 30 to 40
row.column+1 = 300,000
case 41 to 50
row.column+1= 500,000
case 51 to 60
row.column+1= 700,000
case 61 to 70
row.column+1= 700,000+ rand()*500,000
....
case 200 to 250
row.column+1= 10,000,000 + rand()*5,000,000
end select
next


 
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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM
macro used to change colors Brian in FT W. Excel Worksheet Functions 12 June 7th 05 06:30 PM
Each Click of the Mouse D.Parker Excel Discussion (Misc queries) 13 April 28th 05 11:24 PM
How do I change the case of text date formats morph the dates/chang case New Users to Excel 2 April 18th 05 10:15 PM


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