Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How to put values instead of formulas into matrix?

Hi, I am trying to reduce the size om my large file. Therefor I want to use a
macro to put values instead of formulas into a matrix.

The datafile is pulled from a database and looks as follows:
Col A : "Date in"
Col B : "Person"
Col C : "Date start"
Col D: "Date end"

I want to calculate
Col E: "week start"
Col D: "week end"
Col F: "Week start" - "week in"

The amount of lines increases each week by an unknown amount. Therefor the
code needs to look how many lines are added. Also the "date start" and "date
end" do change for existing records. Therefor all the lines need to be
recalculated every time.

I have been searching the files and putting pieces of code together but
nothing gave the wanted end result.

I hope someone can help me.

Best regards,

Gijs Breedveld


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How to put values instead of formulas into matrix?

One approach:

1. store the spreadsheet without formulae
2. have a macro paste the formulae into the appropriate columns and convert
to values.
3. before storing the updated worksheet even the calculated values can be
cleared since the will be re-created at the next update
--
Gary's Student


"Gijs Breedveld" wrote:

Hi, I am trying to reduce the size om my large file. Therefor I want to use a
macro to put values instead of formulas into a matrix.

The datafile is pulled from a database and looks as follows:
Col A : "Date in"
Col B : "Person"
Col C : "Date start"
Col D: "Date end"

I want to calculate
Col E: "week start"
Col D: "week end"
Col F: "Week start" - "week in"

The amount of lines increases each week by an unknown amount. Therefor the
code needs to look how many lines are added. Also the "date start" and "date
end" do change for existing records. Therefor all the lines need to be
recalculated every time.

I have been searching the files and putting pieces of code together but
nothing gave the wanted end result.

I hope someone can help me.

Best regards,

Gijs Breedveld


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default How to put values instead of formulas into matrix?

Hi Gijs

What is "week start" and how do i calculate this. Is it the week for "Date
start"

What is "week end" and how do i calculate this. Is it the week for "Date
end"

Is it the difference you want and you mean "week in"?

Are you quit sure aboute the new columns, D?

Date cells are real dates?


Can you give an e.g. please.
--
Best regards
Joergen Bondesen


"Gijs Breedveld" wrote in message
...
Hi, I am trying to reduce the size om my large file. Therefor I want to
use a
macro to put values instead of formulas into a matrix.

The datafile is pulled from a database and looks as follows:
Col A : "Date in"
Col B : "Person"
Col C : "Date start"
Col D: "Date end"

I want to calculate
Col E: "week start"
Col D: "week end"
Col F: "Week start" - "Week start" - "week in"
The amount of lines increases each week by an unknown amount. Therefor the
code needs to look how many lines are added. Also the "date start" and
"date
end" do change for existing records. Therefor all the lines need to be
recalculated every time.

I have been searching the files and putting pieces of code together but
nothing gave the wanted end result.

I hope someone can help me.

Best regards,

Gijs Breedveld




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
how do I find matrix characteristic values elwood39 Excel Discussion (Misc queries) 1 September 1st 08 12:54 AM
strange behaviour with matrix formulas kayard Excel Worksheet Functions 3 May 16th 06 04:07 PM
calculating matrix values Jason M Excel Worksheet Functions 2 December 2nd 05 07:20 PM
Finding Values in a "Matrix" Diane Alsing Excel Discussion (Misc queries) 8 December 31st 04 08:21 PM
programming of matrix formulas in vba thokel Excel Programming 4 November 20th 04 03:02 PM


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