#1   Report Post  
boogie
 
Posts: n/a
Default FORMULAS please help

Hi there
I am trying to create a formula that refences < numbers in a columm then
adds up the from a different columm
i.e add b1:b100 only if a1:a100 is 10000 <12000 =46
a b
10000 32
9000 64
12001 86
11999 14
9990 12

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUMPRODUCT(--(A1:A10010000),--(A1:A10000<12000),B1:B10000)


Regards,

Peo sjoblom


boogie wrote:
Hi there
I am trying to create a formula that refences < numbers in a columm then
adds up the from a different columm
i.e add b1:b100 only if a1:a100 is 10000 <12000 =46
a b
10000 32
9000 64
12001 86
11999 14
9990 12

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 2 Dec 2004 19:39:05 -0800, boogie
wrote:

Hi there
I am trying to create a formula that refences < numbers in a columm then
adds up the from a different columm
i.e add b1:b100 only if a1:a100 is 10000 <12000 =46
a b
10000 32
9000 64
12001 86
11999 14
9990 12


=SUMIF(A1:A100,"10000",B1:B100) - SUMIF(A1:A100,"=12000",B1:B100)

But your result is only 14. Your query specified that the numbers in colA be
greater than 10000 and less than 12000.

If you want a result of 46, you need to specify "equal to or greater than
10000":

=SUMIF(A1:A100,"=10000",B1:B100) - SUMIF(A1:A100,"=12000",B1:B100)


--ron
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 to cut and paste with locked formulas Oak Excel Discussion (Misc queries) 0 December 2nd 04 01:15 PM
Formulas stop calculating at random times when editing a few spreadsheets. Luke MacNeil Excel Discussion (Misc queries) 3 November 30th 04 03:21 PM
Links in formulas change when another user runs a workbook L Mehl Excel Discussion (Misc queries) 2 November 27th 04 09:27 PM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 2 November 27th 04 01:55 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 0 November 26th 04 03:19 PM


All times are GMT +1. The time now is 05:43 AM.

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"