Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Formula on cells

Colin

not sure about the best way to do what you want ... but is the objective to
get 150 zeros or ones depending on the value of the first cell ? If cell 1
is 1, then cell 2 becomes 1; as cell 2 is now 1 then cell 3 becomes 1; etc.
Got to be a quick way to do that I'm sure !

Regards

Trevor


"CS" wrote in message
...
I have some VBA code which selects and copies a range of cells - 150 at a
time - I then want to be able to run a fomula on these 150 values and

paste
them into a new worksheet.

How would I go about running a formula on the numbers stored in the
clipboard - is it best to paste them first then do the formulas or is it
possible to let excel do the maths in its 'head'!?

(The formula I want to use is simple enough - If previous cell = 1 then 1
else 0)

Thanks,

Colin




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Formula on cells

At the moment I have set up a spreadsheet with 150 formulas across and 3000
down - then when I paste my data into the first blank worksheet - I get a
result which I can use as percentages - the only problem with this is that
the file is 40mb - and takes a while to paste data/manipulate and would be
great if a macro could be created to automatically work out how many rows
are required for the data pasted rather than the current set up.

Thanks,

Colin

"Trevor Shuttleworth" wrote in message
...
Colin

not sure about the best way to do what you want ... but is the objective

to
get 150 zeros or ones depending on the value of the first cell ? If cell

1
is 1, then cell 2 becomes 1; as cell 2 is now 1 then cell 3 becomes 1;

etc.
Got to be a quick way to do that I'm sure !

Regards

Trevor


"CS" wrote in message
...
I have some VBA code which selects and copies a range of cells - 150 at

a
time - I then want to be able to run a fomula on these 150 values and

paste
them into a new worksheet.

How would I go about running a formula on the numbers stored in the
clipboard - is it best to paste them first then do the formulas or is it
possible to let excel do the maths in its 'head'!?

(The formula I want to use is simple enough - If previous cell = 1 then

1
else 0)

Thanks,

Colin






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
Sorting formula cells not same as sort of value cells? Yikes! Barn E. Fife Excel Discussion (Misc queries) 4 October 13th 11 08:35 PM
Formula refers to empty cells even when cells contains data Monica Rustogi Excel Worksheet Functions 1 February 25th 10 06:56 PM
Setting of input cells as blue font and formula cells as black fon Sunnyskies Excel Discussion (Misc queries) 2 May 14th 07 05:27 PM
Need formula that will sum cells in a column bases on criteria in other cells. Jim Excel Worksheet Functions 3 February 18th 06 03:33 PM
trying to create an (almost) circular formula between cells and data validated cells with lists KR Excel Worksheet Functions 0 May 12th 05 07:21 PM


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