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.
 
http://cjoint.com/?AGzeeYZdI9l
I hope this is correct and thank you again. Danny.
Ok, the problem is that some of your data has extraneous spaces at the end. Like this:

Katie[space]

I removed all those spaces and the sum works just fine.

It can be a lot of work trying to clean data of unwanted spaces. Luckily a smart chap made it easy for us.

The macro at this website will remove all leading/trailing and multiple interspersed char 32 space characters. It will also remove and/or convert char 160 non breaking spaces into standard char 32 space characters. It will work on text or numbers and the numbers will be converted to true numeric numbers.

I use this macro dozens of times every single day! It's a real time saver.

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

Here's your file with all the spaces removed and the formula entered in column A:

http://cjoint.com/?AGzeFvPhnBn
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Thank you so much. I have learned a lot. I really appreciate your help, especially over a weekend. This is a wonderful invaluable service to a small business. Danny.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,711
Members
452,939
Latest member
WCrawford

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