Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default multiple condition formula

I want to add values in column A if values in column B are 25 but <49?
Please help. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default multiple condition formula

=sumproduct((a2:a2225)*(a2:a22<49))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"cudan" wrote in message
...
I want to add values in column A if values in column B are 25 but <49?
Please help. Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default multiple condition formula

"cudan" wrote:
I want to add values in column A if values in column B are 25 but <49?


One way: =SUMPRODUCT((B$2:B$1025)*(B$2:B$10<49),A$2:A$10)
Good? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default multiple condition formula

One way:

=SUMIF(B:B,"25",A:A)-SUMIF(B:B,"=49",A:A)

--
Biff
Microsoft Excel MVP


"cudan" wrote in message
...
I want to add values in column A if values in column B are 25 but <49?
Please help. Thanks



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default multiple condition formula

I should have read the post more carefully

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
=sumproduct((a2:a2225)*(a2:a22<49))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"cudan" wrote in message
...
I want to add values in column A if values in column B are 25 but <49?
Please help. Thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default multiple condition formula

This formula will work on any size dataset, you don't have to set the range
like you do with SUMPRODUCT():

=SUMIF(B:B, "25", A:A) - SUMIF(B:B, "48", A:A)

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Max" wrote:

"cudan" wrote:
I want to add values in column A if values in column B are 25 but <49?


One way: =SUMPRODUCT((B$2:B$1025)*(B$2:B$10<49),A$2:A$10)
Good? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---

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 set up a multiple condition formula? JoeAPM Excel Worksheet Functions 4 February 19th 09 07:23 PM
Multiple if condition formula required Narnimar Excel Discussion (Misc queries) 4 November 20th 08 12:34 PM
Multiple Scenario Condition Formula ssmbob Excel Worksheet Functions 2 January 30th 08 06:30 PM
Multiple Condition Formula prolixity Excel Worksheet Functions 5 April 13th 05 01:24 AM
Multiple Condition Sumif Formula momtoaj Excel Worksheet Functions 3 April 6th 05 04:06 PM


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