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

Hi,
I have several colums of data (colum A, B C..), and each has about 1000
points of data. Each column has some missing points(blanks), represented
as"---". I want to create a label (a new column)for each column;i.e., when
A(2) ,A(9),A(20)...is "---", the label(2),label(9),label(20)...=-1, otherwise
the lable=1. It is like a loop thing. I wanted to make a little program about
this. Could anyone give a little help? Thanks in advance!
BTW, to run the program, is it a good idea to insert the code as a module
and then run it? I never did this before in Exel, and would appreciate a lot
if you guys can give some details about how to run! Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default loop calculations in excel?

shannon..i can help you but i dont understand the question yet...so you
want whenever column A entries are "---", you want the corresponding
cell in the label column to read "-1", otherwise it should read "1"?
And what column will the label column be (i.e. Column L)?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default loop calculations in excel?

Why do you want to do this with VBA? A simple formula in your label columns
will do, i.e. =IF(A1="---",-1,1)


On Mon, 31 Jan 2005 08:07:02 -0800, "shannon"
wrote:

Hi,
I have several colums of data (colum A, B C..), and each has about 1000
points of data. Each column has some missing points(blanks), represented
as"---". I want to create a label (a new column)for each column;i.e., when
A(2) ,A(9),A(20)...is "---", the label(2),label(9),label(20)...=-1, otherwise
the lable=1. It is like a loop thing. I wanted to make a little program about
this. Could anyone give a little help? Thanks in advance!
BTW, to run the program, is it a good idea to insert the code as a module
and then run it? I never did this before in Exel, and would appreciate a lot
if you guys can give some details about how to run! 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
Loop in Excel Mike Excel Discussion (Misc queries) 1 January 10th 08 05:35 PM
calculations in MS excel MiniReefKeeper Excel Worksheet Functions 4 July 4th 06 01:57 AM
excel calculations lloyd8156 Excel Worksheet Functions 1 May 26th 05 07:11 PM
Excel VBA loop until eof wombatz Excel Programming 5 January 13th 04 11:26 PM
HELP!!!! Can't stop a loop (NOT an infinite loop) TBA[_2_] Excel Programming 3 December 14th 03 03:33 PM


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