LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default How do I perform a function based on certain criteria?

As an example

=SUMPRODUCT(--(A1:A1000="value1),--(B1:B1000=17))

this will count all the items in column A that match value1, and where the
corresponding value in column B is 17. If you want to add up a further
value, then

=SUMPRODUCT(--(A1:A1000="value1),--(B1:B1000=17),C1:C1000)

--
HTH

Bob Phillips

"SMKDonde" wrote in message
...
I didn't have any room to type anymore when I entered it. Here's the

deal.
I have a file with monthly worksheets that contain several columns of
information. Basically what I want to do is take several of the columns

(1
at a time) and perform functions such as sum; countif; avg; etc. based on
certain criteria in a column (ie: new or used; salesperson; model; etc.).

I
know that excel can do this ... I've just never done any programming and I
need to learn how. Thanks for any input you can give.


"David" wrote:

Hi,
I think you will have to be a little more specific.

"SMKDonde" wrote:

I have monthly worksheets containing several columns of information.

I would
like to perform different functions and calculation



 
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 to perform lookups based on multiple criteria? Brandon[_3_] Excel Worksheet Functions 4 October 19th 08 06:44 PM
Lookup function based on 3 criteria staticx5151 Excel Discussion (Misc queries) 3 January 9th 07 12:01 AM
perform 1 function, stop, perform different function nastech Excel Discussion (Misc queries) 0 August 22nd 06 12:21 PM
Function - counting based on criteria Candace Excel Worksheet Functions 2 April 20th 06 07:41 PM
Is it possible to use the sumif function based on the criteria of. Shelba Excel Worksheet Functions 1 February 2nd 05 05:40 AM


All times are GMT +1. The time now is 12:02 PM.

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"