Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b1888
 
Posts: n/a
Default Excel formula - help needed!

Hi,

My spreadsheet contains 3 columns.
A - product code (numerical 1 - 10000)
B - product description
C - price

I need a formula to achieve the following...
- any product codes (A) between eg 1-499 i want to add the amount (C)
for each of the products in this range.

In other words I want the formula to lookup column A, and any number
found here that's between 1 - 499 add the corresponding value in column
C.

Hope that makes sense.

Any suggestion greatly appreciated.

Cheers,

B1888

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Excel formula - help needed!

Hi

One way
=SUMIF(A:A,"<500",C:C)

--
Regards

Roger Govier


"b1888" wrote in message
oups.com...
Hi,

My spreadsheet contains 3 columns.
A - product code (numerical 1 - 10000)
B - product description
C - price

I need a formula to achieve the following...
- any product codes (A) between eg 1-499 i want to add the amount (C)
for each of the products in this range.

In other words I want the formula to lookup column A, and any number
found here that's between 1 - 499 add the corresponding value in
column
C.

Hope that makes sense.

Any suggestion greatly appreciated.

Cheers,

B1888



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b1888
 
Posts: n/a
Default Excel formula - help needed!

Hi Roger,

thats great thanks!

just one further question - if I now want to do the same with anything
between 500 - 999 how do I tell the formula to look between 500 - 999
rather than just <1000 as I want to exclude anything lower than 500.

Thanks again,

B


Roger Govier wrote:

Hi

One way
=SUMIF(A:A,"<500",C:C)

--
Regards

Roger Govier


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Excel formula - help needed!

=SUMIF(A:A,"<100",C:C)-SUMIF(A:A,"<500",C:C)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"b1888" wrote in message
ups.com...
Hi Roger,

thats great thanks!

just one further question - if I now want to do the same with anything
between 500 - 999 how do I tell the formula to look between 500 - 999
rather than just <1000 as I want to exclude anything lower than 500.

Thanks again,

B


Roger Govier wrote:

Hi

One way
=SUMIF(A:A,"<500",C:C)

--
Regards

Roger Govier




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Excel formula - help needed!

Hi

You need to use 2 Sumif's taking away the values included in the lower
section

=SUMIF(A:A,"<1000",C:C)-SUMIF(A:A,"<500",C:C)


--
Regards

Roger Govier


"b1888" wrote in message
ups.com...
Hi Roger,

thats great thanks!

just one further question - if I now want to do the same with anything
between 500 - 999 how do I tell the formula to look between 500 - 999
rather than just <1000 as I want to exclude anything lower than 500.

Thanks again,

B


Roger Govier wrote:

Hi

One way
=SUMIF(A:A,"<500",C:C)

--
Regards

Roger Govier






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Excel formula - help needed!

oops

=SUMIF(A:A,"<1000",C:C)-SUMIF(A:A,"<500",C:C)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Bob Phillips" wrote in message
...
=SUMIF(A:A,"<100",C:C)-SUMIF(A:A,"<500",C:C)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"b1888" wrote in message
ups.com...
Hi Roger,

thats great thanks!

just one further question - if I now want to do the same with anything
between 500 - 999 how do I tell the formula to look between 500 - 999
rather than just <1000 as I want to exclude anything lower than 500.

Thanks again,

B


Roger Govier wrote:

Hi

One way
=SUMIF(A:A,"<500",C:C)

--
Regards

Roger Govier






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b1888
 
Posts: n/a
Default Excel formula - help needed!

Bob,
that'll do the trick.

cheers,

B

Bob Phillips wrote:

=SUMIF(A:A,"<100",C:C)-SUMIF(A:A,"<500",C:C)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
b1888
 
Posts: n/a
Default Excel formula - help needed!

cheers Roger


Roger Govier wrote:

Hi

You need to use 2 Sumif's taking away the values included in the lower
section

=SUMIF(A:A,"<1000",C:C)-SUMIF(A:A,"<500",C:C)


--
Regards

Roger Govier



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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Convert Excel 4 formula to Excel 2003 format The Gasell Excel Worksheet Functions 3 April 12th 06 05:07 PM
Recurring Excel Formula error - multiple users affected! Rayo K Excel Discussion (Misc queries) 3 April 11th 06 02:22 PM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
Excel formula needed to amounts into one column pulling from 2 col Scott Excel Worksheet Functions 1 March 3rd 05 06:42 PM


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