Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Sumif (sum if question)

I have 4 columns
Column A contains a whole number
Column B contains a dollar amount
Colum C contains a dollar amount I refer to as a floor
Column D contains a dollar amount I refer to as a ceiling
Columns A & B have 10 rows
Columns C & D have 9 rows

I would like to sum the rows in Column A if the dollar amount in column B
falls between the floor and ceiling in columns C & D. I plan to copy this
formula to other areas of the worksheet that contain 9 rows that correspond
to the various floors and ceilings.

Does this make sense? I keep trying the sumif formula, but it doesn't seem
to be working for me.
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Sumif (sum if question)

additional note: Please keep in mind that a dollar amount in column B may
fall between a floor and ceiling in columns C & D on a different row. For
example:

A B C D
10 $75 0 499
5 300 500 999
1 3500 1000 1499
15 1200 1500 1999
etc.

I would like a formula that sums all the rows in Column A where the dollar
amount falls between 0 and 499 (the answer would be 15). I will then have
another cell that asks for the sum of all the numbers in column A where the
dollar amount falls between 500 and 999 (the answer would be 0). I will have
9 cells with formulas that correspond to the nine levels of floors and
ceilings.
Thanks

"Tim Nealon" wrote:

I have 4 columns
Column A contains a whole number
Column B contains a dollar amount
Colum C contains a dollar amount I refer to as a floor
Column D contains a dollar amount I refer to as a ceiling
Columns A & B have 10 rows
Columns C & D have 9 rows

I would like to sum the rows in Column A if the dollar amount in column B
falls between the floor and ceiling in columns C & D. I plan to copy this
formula to other areas of the worksheet that contain 9 rows that correspond
to the various floors and ceilings.

Does this make sense? I keep trying the sumif formula, but it doesn't seem
to be working for me.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Sumif (sum if question)

Assuming your data starts in cell A2, and that the first set of test values
is found in C2 and D2, use this formula

=SUMPRODUCT($A$2:$A$11,--($B$2:$B$11C2),--($B$2:$B$11<D2))


"Tim Nealon" wrote:

additional note: Please keep in mind that a dollar amount in column B may
fall between a floor and ceiling in columns C & D on a different row. For
example:

A B C D
10 $75 0 499
5 300 500 999
1 3500 1000 1499
15 1200 1500 1999
etc.

I would like a formula that sums all the rows in Column A where the dollar
amount falls between 0 and 499 (the answer would be 15). I will then have
another cell that asks for the sum of all the numbers in column A where the
dollar amount falls between 500 and 999 (the answer would be 0). I will have
9 cells with formulas that correspond to the nine levels of floors and
ceilings.
Thanks

"Tim Nealon" wrote:

I have 4 columns
Column A contains a whole number
Column B contains a dollar amount
Colum C contains a dollar amount I refer to as a floor
Column D contains a dollar amount I refer to as a ceiling
Columns A & B have 10 rows
Columns C & D have 9 rows

I would like to sum the rows in Column A if the dollar amount in column B
falls between the floor and ceiling in columns C & D. I plan to copy this
formula to other areas of the worksheet that contain 9 rows that correspond
to the various floors and ceilings.

Does this make sense? I keep trying the sumif formula, but it doesn't seem
to be working for me.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Sumif (sum if question)

What's the meaning of the leading double subtraction signs in the criteria and sum_range?
--
Chris Cowles
Gainesville, FL

"Duke Carey" wrote in message ...
Assuming your data starts in cell A2, and that the first set of test values
is found in C2 and D2, use this formula

=SUMPRODUCT($A$2:$A$11,--($B$2:$B$11C2),--($B$2:$B$11<D2))


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumif (sum if question)

See these:

http://xldynamic.com/source/xld.SUMPRODUCT.html


http://mcgimpsey.com/excel/formulae/doubleneg.html

Biff

"Chris Cowles" wrote in message
...
What's the meaning of the leading double subtraction signs in the criteria
and sum_range?
--
Chris Cowles
Gainesville, FL

"Duke Carey" wrote in message
...
Assuming your data starts in cell A2, and that the first set of test
values
is found in C2 and D2, use this formula

=SUMPRODUCT($A$2:$A$11,--($B$2:$B$11C2),--($B$2:$B$11<D2))





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Sumif (sum if question)

Tim,

Try:
Headers in row 1
Floor 1:
=SUMPRODUCT(($B$2:$B$11=C2)*($B$2:$B$11<C3)*($A$2 :$A$11))

Drag down on th fill handle for floors 2 - 8

Floor 9:
=SUMPRODUCT(($B$2:$B$11=C10)*($A$2:$A$11))

No need for column D

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Tim Nealon" wrote in message
...
additional note: Please keep in mind that a dollar amount in column B may
fall between a floor and ceiling in columns C & D on a different row.
For
example:

A B C D
10 $75 0 499
5 300 500 999
1 3500 1000 1499
15 1200 1500 1999
etc.

I would like a formula that sums all the rows in Column A where the dollar
amount falls between 0 and 499 (the answer would be 15). I will then have
another cell that asks for the sum of all the numbers in column A where
the
dollar amount falls between 500 and 999 (the answer would be 0). I will
have
9 cells with formulas that correspond to the nine levels of floors and
ceilings.
Thanks

"Tim Nealon" wrote:

I have 4 columns
Column A contains a whole number
Column B contains a dollar amount
Colum C contains a dollar amount I refer to as a floor
Column D contains a dollar amount I refer to as a ceiling
Columns A & B have 10 rows
Columns C & D have 9 rows

I would like to sum the rows in Column A if the dollar amount in column B
falls between the floor and ceiling in columns C & D. I plan to copy
this
formula to other areas of the worksheet that contain 9 rows that
correspond
to the various floors and ceilings.

Does this make sense? I keep trying the sumif formula, but it doesn't
seem
to be working for me.
Thanks



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
SUMIF Question Owen888 Excel Worksheet Functions 4 September 28th 06 07:14 PM
SUMIF Question Brig Siton Excel Worksheet Functions 3 January 25th 06 05:16 PM
SUMIF question alice Excel Discussion (Misc queries) 2 November 24th 05 02:55 PM
SUMIF Question CLR Excel Discussion (Misc queries) 13 September 20th 05 01:08 AM
SUMIF question CarlosAntenna Excel Worksheet Functions 2 February 23rd 05 06:38 PM


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