Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dj dj is offline
external usenet poster
 
Posts: 92
Default How to add numbers in adjacent cells

I have a sheet with days of week in one column and values in adjacent cells;
I need to work out the total for each day of the week - see below for example:
Monday 1000
Tuesday 2000
Wednesday 3000
Monday 500
Tuesday 2000
Wednesday 5000

Totals would be 1500, 4000 & 8000 but what is the formula to do this?
--
DJ
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default How to add numbers in adjacent cells

=SUMIF(A:A,"Monday",B:B)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DJ" wrote in message
...
I have a sheet with days of week in one column and values in adjacent
cells;
I need to work out the total for each day of the week - see below for
example:
Monday 1000
Tuesday 2000
Wednesday 3000
Monday 500
Tuesday 2000
Wednesday 5000

Totals would be 1500, 4000 & 8000 but what is the formula to do this?
--
DJ



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default How to add numbers in adjacent cells

presuming D10=Monday, D11=Tuesday, D12=Wednesday and days in A10:A15,
numbers in B10:B15

one way:

=SUMPRODUCT((D10=$A$10:$A$15)*$B$10:$B$15)

another:

=SUM(IF((D10=$A$10:$A$15)*($B$10:$B$15),$B$10:$B$1 5,))
this one is an array-formula so CTRL+SHIFT+ENTER it instead of simpy
using enter
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
Adding numbers based on partial text in adjacent cells s31064 Excel Discussion (Misc queries) 3 December 9th 06 02:53 AM
By selecting cells adjacent to cells tally sheet tom Excel Worksheet Functions 2 September 20th 06 07:09 PM
how do i add in numbers automatically based on adjacent cells cont lemskibar Excel Discussion (Misc queries) 2 December 22nd 05 05:27 PM
How do I fill (copy) nonadjacent cells to adjacent cells? BuckyGeorge Excel Discussion (Misc queries) 2 December 22nd 05 04:18 AM
Adding adjacent numbers and resettiing when encountering 0 Midnight404 Excel Worksheet Functions 0 August 5th 05 01:03 PM


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