Time log: Sum a row with both numbers and text

HickorySticks

New Member
Joined
Jul 8, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Hopefully, someone can point me in the right direction on this. I want to be able to sum the rows in the example below where whenever a certain text is entered into one of the cells the corresponding numerical value is pulled from the table from the far right of the sheet. I don't want the text to be replaced by the numerical value, I just want the sum of the row to reflect the values of the text along with the actual numbers in the row. There are more options in the table, but I streamlined it a bit for posting. Thanks in advance.



Time Log - Sample.xlsm
ABCDEFGHIJKL
1
2SundayMondayTuesdayWednesdayThursdayFridaySaturdayTotal Hours
3 Birthday8
4Douglas S.4.5010.75VacationBirthday12.008.50Non Scheduled35.75Call Off0
5Robert J.Off8.758.006.5011.2510.00Non Scheduled44.50Holiday8
6Tom M.Off8.0010.508.008.009.75Non Scheduled44.25Non Scheduled0
7Willie P.Off10.007.508.508.0010.00Non Scheduled44.00Off0
8Gene S.8.2512.00Call Off8.008.008.00Non Scheduled44.25Vacation8
Sheet1
Cell Formulas
RangeFormula
I4:I8I4=SUM(B4:H4)
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUM(B4:H4,XLOOKUP(B4:H4,$K$3:$K$8,$L$3:$L$8,0))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,483
Messages
6,125,065
Members
449,206
Latest member
Healthydogs

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