Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Searching 2 columns for dates and text problem

I have two worksheets in a single workbook.

WS1

Col A contains dates; Apr-06 thru Mar-07 over a 1,000 rows

Col B is populated with 15 unique category descriptions over the 1,000 rows.
(lets say the descriptions are Cat1, Cat2, Cat3€¦Cat15)

Col C is a currency

Im looking for a VBA solution to satisfy the following€¦

For each occurrence of the current month in Col A, If true... for every
occurrence of a category match in Col B, roll-up the values in Col C and
place the SUM in Cell A1 of WS2.

Hope this makes sense.

Any ideas appreciated.
Paul

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Searching 2 columns for dates and text problem

You can do this without code using a Pivot Table and grouping on Month.

--
Regards,
Tom Ogilvy



"Paulc" wrote:

I have two worksheets in a single workbook.

WS1

Col A contains dates; Apr-06 thru Mar-07 over a 1,000 rows

Col B is populated with 15 unique category descriptions over the 1,000 rows.
(lets say the descriptions are Cat1, Cat2, Cat3€¦Cat15)

Col C is a currency

Im looking for a VBA solution to satisfy the following€¦

For each occurrence of the current month in Col A, If true... for every
occurrence of a category match in Col B, roll-up the values in Col C and
place the SUM in Cell A1 of WS2.

Hope this makes sense.

Any ideas appreciated.
Paul

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Searching 2 columns for dates and text problem

Tom, thanks for your response.

i did consider a pivot table. If i can get around the need for excel to
format my dates as dd/mm/yy then the pivot route would work for me. Else im
faced with individual dates as opposed to grouping by month.


"Tom Ogilvy" wrote:

You can do this without code using a Pivot Table and grouping on Month.

--
Regards,
Tom Ogilvy



"Paulc" wrote:

I have two worksheets in a single workbook.

WS1

Col A contains dates; Apr-06 thru Mar-07 over a 1,000 rows

Col B is populated with 15 unique category descriptions over the 1,000 rows.
(lets say the descriptions are Cat1, Cat2, Cat3€¦Cat15)

Col C is a currency

Im looking for a VBA solution to satisfy the following€¦

For each occurrence of the current month in Col A, If true... for every
occurrence of a category match in Col B, roll-up the values in Col C and
place the SUM in Cell A1 of WS2.

Hope this makes sense.

Any ideas appreciated.
Paul

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
Concantenate columns with dates and text Dazed and Confused[_2_] Excel Worksheet Functions 2 April 4th 09 01:02 PM
Problem searching cell text tommcbrny Excel Discussion (Misc queries) 3 May 15th 08 05:00 PM
problem summing columns with dates lampatmyfeet Excel Worksheet Functions 2 May 9th 08 04:41 PM
searching text values in two columns destrolennox Excel Discussion (Misc queries) 1 August 12th 06 03:53 AM
comparing columns of text (cross-searching) WorkingWithText Excel Discussion (Misc queries) 0 November 8th 05 02:30 AM


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

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"