#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel Lookup help

I am trying to figure out how to do the following. I am trying to get a sum
of numbers in a column, but the numbers need to fit certain criteria. For
example;

I have 500 numbers in a column ranging from 1 to 130
I need the sum of only the numbers between 40 and 60.

I figure that this involves the sum function and some type of "if" and "and"
statement, but i'm not sure how to word this. Could someone Please help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Excel Lookup help

Couple of ways:

=Sumif(A1:A500,"=40")-Sumif(A1:A500,"60")

OR

=Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"B_vegas" wrote in message
...
I am trying to figure out how to do the following. I am trying to get a

sum
of numbers in a column, but the numbers need to fit certain criteria. For
example;

I have 500 numbers in a column ranging from 1 to 130
I need the sum of only the numbers between 40 and 60.

I figure that this involves the sum function and some type of "if" and

"and"
statement, but i'm not sure how to word this. Could someone Please help!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Excel Lookup help

Thank you very much!

"Ragdyer" wrote:

Couple of ways:

=Sumif(A1:A500,"=40")-Sumif(A1:A500,"60")

OR

=Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"B_vegas" wrote in message
...
I am trying to figure out how to do the following. I am trying to get a

sum
of numbers in a column, but the numbers need to fit certain criteria. For
example;

I have 500 numbers in a column ranging from 1 to 130
I need the sum of only the numbers between 40 and 60.

I figure that this involves the sum function and some type of "if" and

"and"
statement, but i'm not sure how to word this. Could someone Please help!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Excel Lookup help


-- What if the scenario were the Criteria was in column 1 let us say account
name then the amount was in column 5 and you needed to add all for a
particular account name?

joromajr


"Ragdyer" wrote:

Couple of ways:

=Sumif(A1:A500,"=40")-Sumif(A1:A500,"60")

OR

=Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"B_vegas" wrote in message
...
I am trying to figure out how to do the following. I am trying to get a

sum
of numbers in a column, but the numbers need to fit certain criteria. For
example;

I have 500 numbers in a column ranging from 1 to 130
I need the sum of only the numbers between 40 and 60.

I figure that this involves the sum function and some type of "if" and

"and"
statement, but i'm not sure how to word this. Could someone Please help!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Excel Lookup help

You could choose from either of the same 2 functions:

=Sumif(A1:A500,"Acctname",E1:E500)

Or

=Sumproduct((A1:A500="Acctname")*E1:E500)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"joromajr" wrote in message
...

-- What if the scenario were the Criteria was in column 1 let us say

account
name then the amount was in column 5 and you needed to add all for a
particular account name?

joromajr


"Ragdyer" wrote:

Couple of ways:

=Sumif(A1:A500,"=40")-Sumif(A1:A500,"60")

OR

=Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500)
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"B_vegas" wrote in message
...
I am trying to figure out how to do the following. I am trying to get

a
sum
of numbers in a column, but the numbers need to fit certain criteria.

For
example;

I have 500 numbers in a column ranging from 1 to 130
I need the sum of only the numbers between 40 and 60.

I figure that this involves the sum function and some type of "if" and

"and"
statement, but i'm not sure how to word this. Could someone Please

help!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Excel Lookup help

You're welcome, and appreciate the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"B_vegas" wrote in message
...
Thank you very much!

"Ragdyer" wrote:

Couple of ways:

=Sumif(A1:A500,"=40")-Sumif(A1:A500,"60")

OR

=Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500)
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"B_vegas" wrote in message
...
I am trying to figure out how to do the following. I am trying to get

a
sum
of numbers in a column, but the numbers need to fit certain criteria.

For
example;

I have 500 numbers in a column ranging from 1 to 130
I need the sum of only the numbers between 40 and 60.

I figure that this involves the sum function and some type of "if" and

"and"
statement, but i'm not sure how to word this. Could someone Please

help!



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
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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