Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
James1976
 
Posts: n/a
Default Sums according to the content of fields

Hello everyone,

I would like to sum figures in a table according to the contents of the
fields. For example I have three definitions in column A : First, Second,
Third and a number in column B. I would like to generate a sum for all the
numbers where column B = "First" and then another sum where column B = Second
or Third.

Thanks very much for any help you can give me.
--
James
  #2   Report Post  
bj
 
Posts: n/a
Default

Try
=sumif(A:A,"First",B:B)
etc.

"James1976" wrote:

Hello everyone,

I would like to sum figures in a table according to the contents of the
fields. For example I have three definitions in column A : First, Second,
Third and a number in column B. I would like to generate a sum for all the
numbers where column B = "First" and then another sum where column B = Second
or Third.

Thanks very much for any help you can give me.
--
James

  #3   Report Post  
James1976
 
Posts: n/a
Default

Hello,

Thanks for your reply but I tried sum if and before and it returns just a 0.
--
James


"bj" wrote:

Try
=sumif(A:A,"First",B:B)
etc.

"James1976" wrote:

Hello everyone,

I would like to sum figures in a table according to the contents of the
fields. For example I have three definitions in column A : First, Second,
Third and a number in column B. I would like to generate a sum for all the
numbers where column B = "First" and then another sum where column B = Second
or Third.

Thanks very much for any help you can give me.
--
James

  #4   Report Post  
bj
 
Posts: n/a
Default

if your answer is zero one of two things
the Column A does not match or the the column B are not numbers

to check column A
try
for one of the cells which says "First" (A3??)
in a blank cell enter
=A3="First"
if the answer is false there are probably spaces or something
try
=Trim(A3)="First"

To check Column B
=sum(B10:B12) or appropriate range
if the answer is 0 then column B is probably text which looks like numbers
Try entering 1 in an empty cell copying the cell
Select the data in column B and paste special mulitply
check your sum b10:b12 cell If still 0
use a helper column and enter
=value(trim(B1))
and copy down to the bottom of your data. copy and paste special values over
B

"James1976" wrote:

Hello,

Thanks for your reply but I tried sum if and before and it returns just a 0.
--
James


"bj" wrote:

Try
=sumif(A:A,"First",B:B)
etc.

"James1976" wrote:

Hello everyone,

I would like to sum figures in a table according to the contents of the
fields. For example I have three definitions in column A : First, Second,
Third and a number in column B. I would like to generate a sum for all the
numbers where column B = "First" and then another sum where column B = Second
or Third.

Thanks very much for any help you can give me.
--
James

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
Cell addressing using the content of another cell. De Jandon Excel Worksheet Functions 5 April 1st 05 10:59 PM
Cell addressing using the content of another cell. Jandon Excel Worksheet Functions 1 March 30th 05 06:39 PM
Number of dropdown fields in Excel is limited. I need more. How? UweVahrson Excel Discussion (Misc queries) 7 March 28th 05 05:10 PM
Formatting Fields Naguib Excel Worksheet Functions 1 January 26th 05 06:02 PM
Sorting Spreadsheet with Merged Fields Linda L Excel Discussion (Misc queries) 1 January 22nd 05 12:58 AM


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