Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Set up macro (or formula)

Hello,

Ive the following scenario.

I need to either set a formula or a macro to identify in the separate sheet
to find; the total count for €˜done and €˜in progress for all items A €“ E.

Please help me to understand. Appreciate any help,



Item Plan comp status
A 11/1/2009 done
A 11/2/2009 done
A 12/20/2009 in progress
B 1/1/1010 in progress
B 11/10/2009 done
C 11/20/2009 done
C 1/1/1010 in progress
C 1/1/1011 in progress
C 1/1/1012 in progress
D 12/1/2009 done
D 12/2/2009 done
E 12/3/2009 done
E 12/4/2009 done
E 12/4/2009 in progress

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Set up macro (or formula)

With data in Sheet1

'Count of A with status Done
=SUMPRODUCT((Sheet1!A1:A20="A")*(Sheet1!C1:C20="Do ne"))

'with criteria in cell A1 of sheet2
=SUMPRODUCT((Sheet1!A1:A20=A1)*(Sheet1!C1:C20="Don e"))

Count of A with status Done and In Progress
=SUMPRODUCT((Sheet1!A1:A20="A")*(Sheet1!C1:C20={"D one","In Progress"}))

or
=SUMPRODUCT((Sheet1!A1:A20=A1)*(Sheet1!C1:C20={"Do ne","In Progress"}))

If this post helps click Yes
---------------
Jacob Skaria


"Moin" wrote:

Hello,

Ive the following scenario.

I need to either set a formula or a macro to identify in the separate sheet
to find; the total count for €˜done and €˜in progress for all items A €“ E.

Please help me to understand. Appreciate any help,



Item Plan comp status
A 11/1/2009 done
A 11/2/2009 done
A 12/20/2009 in progress
B 1/1/1010 in progress
B 11/10/2009 done
C 11/20/2009 done
C 1/1/1010 in progress
C 1/1/1011 in progress
C 1/1/1012 in progress
D 12/1/2009 done
D 12/2/2009 done
E 12/3/2009 done
E 12/4/2009 done
E 12/4/2009 in progress

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Set up macro (or formula)

Hi,


What you seem to have asked for is this

=COUNTIF(Sheet1!C2:C15,"Done")+COUNTIF(Sheet1!C2:C 15,"In Progress")

But do you mean this

=SUMPRODUCT((Sheet1!A2:A15="A")*(Sheet1!C2:C15="Do ne"))

Mike

"Moin" wrote:

Hello,

Ive the following scenario.

I need to either set a formula or a macro to identify in the separate sheet
to find; the total count for €˜done and €˜in progress for all items A €“ E.

Please help me to understand. Appreciate any help,



Item Plan comp status
A 11/1/2009 done
A 11/2/2009 done
A 12/20/2009 in progress
B 1/1/1010 in progress
B 11/10/2009 done
C 11/20/2009 done
C 1/1/1010 in progress
C 1/1/1011 in progress
C 1/1/1012 in progress
D 12/1/2009 done
D 12/2/2009 done
E 12/3/2009 done
E 12/4/2009 done
E 12/4/2009 in progress

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
formula or macro to change a formula in muliple spreadsheets [email protected] Excel Programming 1 May 21st 09 05:27 PM
use macro to copy formula with value and not formula without value ramzi Excel Programming 3 August 4th 08 02:07 PM
Formula in macro causes macro to fail KCK Excel Programming 2 February 8th 07 08:47 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Macro - formula for end of last row JN Excel Worksheet Functions 1 June 1st 05 11:47 AM


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