Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default how to simplify this process?

i have data in the form

mth n(day of yr) year dataA dataB dataC ..... dataN
1 24 94 .. .. .. ..
1 10 97 .. .. .. ..


the data is from 1jan 92 to 31dec 98, and i have sorted in order of month.
the purpose is to obtain the highest dataC value for jan92 , jan93, ... jan98
and output the month, n(day of yr) and year, probably in another sheet.
Similarly, this is done for feb92 to feb98, and for the rest of the months.
After this is done, this process is repeated for highest value of dataD, and
dataE, and so on, up to dataN.

Currently, i am manually sorting dataC in descending order and looking for
the highest value for each month from 92 to 98, and doing dataD now. As there
is over 2000 rows of data, how can i write a VBA program to automate this
process? Thanks in advance!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default how to simplify this process?

Oh, there's a problem...i am new to programming and couldn't understand what
you just typed.

"Don Guillett" wrote:

use this ARRAY formula which must be entered with control+shift+enter,
where dates are in checksA range and checksD has the amount. Change to your
ranges. If you name, you can use easily from the other sheet. Use a self
adjusting (defined )name by insertnamedefinename it in the refers to
box something like
=offset($a$1,0,0,counta($A:$a),1)

=MAX(IF(MONTH(ChecksA)=3,ChecksD))

--
Don Guillett
SalesAid Software

"KiriumF1" wrote in message
...
i have data in the form

mth n(day of yr) year dataA dataB dataC ..... dataN
1 24 94 .. .. .. ..
1 10 97 .. .. .. ..


the data is from 1jan 92 to 31dec 98, and i have sorted in order of month.
the purpose is to obtain the highest dataC value for jan92 , jan93, ...

jan98
and output the month, n(day of yr) and year, probably in another sheet.
Similarly, this is done for feb92 to feb98, and for the rest of the

months.
After this is done, this process is repeated for highest value of dataD,

and
dataE, and so on, up to dataN.

Currently, i am manually sorting dataC in descending order and looking for
the highest value for each month from 92 to 98, and doing dataD now. As

there
is over 2000 rows of data, how can i write a VBA program to automate this
process? Thanks in advance!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default how to simplify this process?

Could you show me a short example for me to kick start with? Thanks!

"Don Guillett" wrote:

use this ARRAY formula which must be entered with control+shift+enter,
where dates are in checksA range and checksD has the amount. Change to your
ranges. If you name, you can use easily from the other sheet. Use a self
adjusting (defined )name by insertnamedefinename it in the refers to
box something like
=offset($a$1,0,0,counta($A:$a),1)

=MAX(IF(MONTH(ChecksA)=3,ChecksD))

--
Don Guillett
SalesAid Software

"KiriumF1" wrote in message
...
i have data in the form

mth n(day of yr) year dataA dataB dataC ..... dataN
1 24 94 .. .. .. ..
1 10 97 .. .. .. ..


the data is from 1jan 92 to 31dec 98, and i have sorted in order of month.
the purpose is to obtain the highest dataC value for jan92 , jan93, ...

jan98
and output the month, n(day of yr) and year, probably in another sheet.
Similarly, this is done for feb92 to feb98, and for the rest of the

months.
After this is done, this process is repeated for highest value of dataD,

and
dataE, and so on, up to dataN.

Currently, i am manually sorting dataC in descending order and looking for
the highest value for each month from 92 to 98, and doing dataD now. As

there
is over 2000 rows of data, how can i write a VBA program to automate this
process? Thanks in advance!




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
I need to simplify this... j5b9721 Excel Worksheet Functions 5 July 23rd 09 09:03 AM
Simplify Process with Excel 2003 Zraxius New Users to Excel 1 December 5th 04 01:55 PM
please help simplify acarril[_10_] Excel Programming 1 September 21st 04 07:39 PM
please help simplify acarril[_9_] Excel Programming 1 September 21st 04 05:36 PM
Simplify Josh[_7_] Excel Programming 4 January 9th 04 12:16 AM


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