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: 1
Default Difficult macro to calculate and format data

The problem is .......

I have three columns A B & C
-----------------------------------------
A B C
-----------------------------------------
01/01/2004 1 0
01/02/2004 4 0
01/03/2004 3 0
01/05/2004 7 0
01/09/2004 1 0
01/11/2004 5 0
01/20/2004 4 0

01/09/2004 1 1
01/11/2004 1 1
01/20/2004 4 1
01/21/2004 2 1

As u can see we have the C column which is a repeating number and the
column which is the result. The A column is a date which is using fo
the order.

First of all we count the B column. We get

For the C column with the 0
2 times 1
2 times 4
1 time 3
1 time 5
1 time 7

For the C column with the 1
2 times 1
1 time 2
1 time 4

The problem .....
I want to show the above results using the following format

| 1 2 3 4 5 6 7 8 9 <--- the times
----|-------------------------------------------
C |
col.|
|
0 | 2 1 2 1 1 <---The B col
for the 0
1 | 2 1 1 <-- The
col. for the 1

So as u can easy see now the 1 (Column's C second number) was found
times in the 1st position, 1 time in the 2nd position and 1 time in th
4th.

I have already done the above using the

=SUMPRODUCT(($B$5:$B$5000=C$2)*($C$5:$C$5000=$A2)) )
*the C$2 is the times
*the $A2 is the reference of the C column
*the B$5:$B$5000 is the B column
*the C$5:$C$5000 is the C column

But its extremely slow. So slow like a turtle.
If anyone knows how i can build it under VB using code it will b
helpful to me !!!!



Thanks in advance

*******************
Stathis
Patras - Greec

--
Message posted from http://www.ExcelForum.com

 
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
Create macro to calculate data range for a running chart James Lucero Excel Worksheet Functions 1 April 29th 08 04:27 PM
Macro to format data. diaare Excel Discussion (Misc queries) 4 February 15th 08 04:14 PM
Difficult Time/ Deleting Macro/ Tool Bar John New Users to Excel 2 December 6th 07 04:30 PM
Data Validation - still difficult Kevin Excel Discussion (Misc queries) 2 September 6th 05 03:28 AM
difficult concatenate macro stakar[_2_] Excel Programming 2 March 4th 04 07:59 AM


All times are GMT +1. The time now is 08:37 AM.

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"