Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA, Macros, functions, or formulas

Hi, I am trying to figure out how to do the following:

Say, for example, I have the following data:

Item A, brown, size 12
Item B, pink, size 10
Item C, pink, size 12
Item D, brown, size 12
Item E, pink, size 6

How do I set up my spreadsheet so that I can find out how
many items are brown AND size 12. Is there some script
or formula that I can use to count the instances of
brown? Is there a script/formula that can count the
instances of brown AND size 12? Please consider that I
my actual data has more 400 items, not just 5. Also
consider that I would like to be able to apply the macro
to new sets of data on a regular basis.

If there is anyone who can reply with step by step
instructions then I would appreciate it. I have never
created a macro or programmed with visual basic before.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA, Macros, functions, or formulas

Have you ever used a Pivot table?

That should provide you with the information you need and
you can use it in other data without problem.

Andres

-----Original Message-----
Hi, I am trying to figure out how to do the following:

Say, for example, I have the following data:

Item A, brown, size 12
Item B, pink, size 10
Item C, pink, size 12
Item D, brown, size 12
Item E, pink, size 6

How do I set up my spreadsheet so that I can find out how
many items are brown AND size 12. Is there some script
or formula that I can use to count the instances of
brown? Is there a script/formula that can count the
instances of brown AND size 12? Please consider that I
my actual data has more 400 items, not just 5. Also
consider that I would like to be able to apply the macro
to new sets of data on a regular basis.

If there is anyone who can reply with step by step
instructions then I would appreciate it. I have never
created a macro or programmed with visual basic before.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA, Macros, functions, or formulas



--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Miss A" wrote in message
...
Hi, I am trying to figure out how to do the following:

Say, for example, I have the following data:

Item A, brown, size 12
Item B, pink, size 10
Item C, pink, size 12
Item D, brown, size 12
Item E, pink, size 6

How do I set up my spreadsheet so that I can find out how
many items are brown AND size 12. Is there some script
or formula that I can use to count the instances of
brown? Is there a script/formula that can count the
instances of brown AND size 12? Please consider that I
my actual data has more 400 items, not just 5. Also
consider that I would like to be able to apply the macro
to new sets of data on a regular basis.

If there is anyone who can reply with step by step
instructions then I would appreciate it. I have never
created a macro or programmed with visual basic before.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA, Macros, functions, or formulas

If you want a formula

=SUMPRODUCT(--(B1:B100="brown"),--(C1:C100="size 12"))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Miss A" wrote in message
...
Hi, I am trying to figure out how to do the following:

Say, for example, I have the following data:

Item A, brown, size 12
Item B, pink, size 10
Item C, pink, size 12
Item D, brown, size 12
Item E, pink, size 6

How do I set up my spreadsheet so that I can find out how
many items are brown AND size 12. Is there some script
or formula that I can use to count the instances of
brown? Is there a script/formula that can count the
instances of brown AND size 12? Please consider that I
my actual data has more 400 items, not just 5. Also
consider that I would like to be able to apply the macro
to new sets of data on a regular basis.

If there is anyone who can reply with step by step
instructions then I would appreciate it. I have never
created a macro or programmed with visual basic before.



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 combine MACROS and functions? Mr_Crowe New Users to Excel 1 July 9th 08 02:23 AM
macros with functions Robert Excel Worksheet Functions 3 March 21st 08 02:00 PM
Excel Functions and Macros Rich Excel Discussion (Misc queries) 2 December 22nd 05 03:55 PM
Finding MACROs and FUNCTIONs Tom Excel Worksheet Functions 0 October 12th 05 02:15 PM
Macros and IF Functions Keri[_2_] Excel Programming 1 April 20th 04 04:50 PM


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