Trying to add values from cells with a related name in the adjoining cell.

dannyodo

New Member
Joined
Jul 22, 2011
Messages
7
I have a simple scheduling spreadsheet for 5 employees. I want the sheet to add the hours for each person and give me a total.the cells are like this:

Katie 8
Anna 6
Jessica 5
Katie 3
Anna 3
Jessica 8
I have the names in one cell and the number in an adjacent cell. Please, please help me.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I have a simple scheduling spreadsheet for 5 employees. I want the sheet to add the hours for each person and give me a total.the cells are like this:

Katie 8
Anna 6
Jessica 5
Katie 3
Anna 3
Jessica 8
I have the names in one cell and the number in an adjacent cell. Please, please help me.
Try this...

Book1
ABCDE
2Katie8_Katie11
3Anna6_Anna9
4Jessica5_Jessica13
5Katie3___
6Anna3___
7Jessica8___
Sheet1

This formula entered in E2 and copied down:

=SUMIF(A$2:A$7,D2,B$2:B$7)
 
Upvote 0
Thank you. It is obviously more complicated than I thought. This is a better example of what I have.I have a simple scheduling spreadsheet for 5 employees. I want the sheet to add the hours for each person and give me a total.the cells are like this:

Monday Aug 1
Katie 8
Anna 6
Jessica 5
Ashley OFF
Tuesday Aug 2
Katie 3
Anna 3
Jessica 8
Sarah OFF
Wed Aug 3
Anna 8
Katie 7
Jessica 4
Sarah 6
Edith OFF
I have the names in one cell and the number in an adjacent cell. But in a cell above, I havthe date and in a cell below I have a name with the adjacent cell showing that person is 'OFF".
I am sorry I am so stupid but at 62 I am trying to learn something I am not able for. I really appreciate what you do. Thank you. Danny.
 
Upvote 0
Thank you. It is obviously more complicated than I thought. This is a better example of what I have.I have a simple scheduling spreadsheet for 5 employees. I want the sheet to add the hours for each person and give me a total.the cells are like this:

Monday Aug 1
Katie 8
Anna 6
Jessica 5
Ashley OFF
Tuesday Aug 2
Katie 3
Anna 3
Jessica 8
Sarah OFF
Wed Aug 3
Anna 8
Katie 7
Jessica 4
Sarah 6
Edith OFF
I have the names in one cell and the number in an adjacent cell. But in a cell above, I havthe date and in a cell below I have a name with the adjacent cell showing that person is 'OFF".
I am sorry I am so stupid but at 62 I am trying to learn something I am not able for. I really appreciate what you do. Thank you. Danny.
It should still work.

Book1
ABCDE
1Monday Aug 1__NameTotal
2Katie8_Anna17
3Anna6_Katie18
4Jessica5_Jessica17
5AshleyOFF_Sarah6
6Tuesday Aug 2__Edith0
7Katie3___
8Anna3___
9Jessica8___
10SarahOFF___
11Wed Aug 3____
12Anna8___
13Katie7___
14Jessica4___
15Sarah6___
16EdithOFF___
Sheet1

Formula entered in E2 and copied down:

=SUMIF(A$2:A$16,D2,B$2:B$16)
 
Upvote 0
Thank you again. I have checked my formula a dozen times and still cannot get the correct answers. This is the formula I entered. =SUMIF(B$2:B$46,P2,C$2:C$46) I presume the $ sign means the $ sign? Thank you for your patience with an old man.
 
Upvote 0
Thank you again. I have checked my formula a dozen times and still cannot get the correct answers. This is the formula I entered. =SUMIF(B$2:B$46,P2,C$2:C$46) I presume the $ sign means the $ sign? Thank you for your patience with an old man.
The $ dollar sign means that when you drag copy the formula down a column the row references in the ranges B2:B46 and C2:C46 will not change. They will remain absolute.

Can you post a link to your file (or a representative sample file)?

You can use a free file host if need be.
 
Upvote 0
Thank you for your patience. You have thrown me for a loop! Us Irish are a 'thick" people! I do not know how to do a link or a free file host! I'm sorry: i just am not that good at this. I do not mind sending you my file; it is nothing confidential. Let me know how to post the file, please. We are sweltering here in Charlotte, North Carolina. Again, my sincere thanks for your help and patience. Danny.
 
Upvote 0
Thank you for your patience. You have thrown me for a loop! Us Irish are a 'thick" people! I do not know how to do a link or a free file host! I'm sorry: i just am not that good at this. I do not mind sending you my file; it is nothing confidential. Let me know how to post the file, please. We are sweltering here in Charlotte, North Carolina. Again, my sincere thanks for your help and patience. Danny.
Here's a free file host that I use sometimes.

http://tinyurl.com/24xfnt
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,693
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top