Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel lookup in multiple areas

I have a long log and I need to look up and sum if it meets certain criteria.
I have used sumif and that works for one criteria but how do I do a sumif
type function if I have more than one.

If B1:B100=X and C1:C100=Y then SUM D1:D100 if they contain both X&Y
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Excel lookup in multiple areas

Use sumproduct
=SUMPRODUCT((B1:B100="x")*(C1:C100="y")*(D1:D100))
--
JNW


"Kitbasher" wrote:

I have a long log and I need to look up and sum if it meets certain criteria.
I have used sumif and that works for one criteria but how do I do a sumif
type function if I have more than one.

If B1:B100=X and C1:C100=Y then SUM D1:D100 if they contain both X&Y

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Excel lookup in multiple areas

=SUMPRODUCT(--(B1:B100="X"),--(C1:C100="Y"),--(D1:D100))

Regards

Trevor


"Kitbasher" wrote in message
...
I have a long log and I need to look up and sum if it meets certain
criteria.
I have used sumif and that works for one criteria but how do I do a sumif
type function if I have more than one.

If B1:B100=X and C1:C100=Y then SUM D1:D100 if they contain both X&Y



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Excel lookup in multiple areas

=SUMPRODUCT((B1:B100=X)*(C1:C100=Y)*D1:D100)

HTH
Kostis Vezerides


Kitbasher wrote:
I have a long log and I need to look up and sum if it meets certain criteria.
I have used sumif and that works for one criteria but how do I do a sumif
type function if I have more than one.

If B1:B100=X and C1:C100=Y then SUM D1:D100 if they contain both X&Y


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 328
Default Excel lookup in multiple areas

You can use the nested formula CTRL+SHIFT+ENTER, however, I would recommend
using Conditional Sum - Go to Tools/Add ins and select conditional Sum.
"Kitbasher" wrote:

I have a long log and I need to look up and sum if it meets certain criteria.
I have used sumif and that works for one criteria but how do I do a sumif
type function if I have more than one.

If B1:B100=X and C1:C100=Y then SUM D1:D100 if they contain both X&Y

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 get cell data in multiple Excel files into one summary fi 78degreesinHI Excel Worksheet Functions 4 August 29th 06 02:05 AM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM
multi sheet lookup with multiple results Alec H Excel Discussion (Misc queries) 1 March 10th 06 08:05 PM
how can i open multiple excel sheets separately srinu Excel Discussion (Misc queries) 1 July 8th 05 04:38 PM
Multiple reference for lookup in excel Andrew Excel Worksheet Functions 2 March 16th 05 07:19 PM


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