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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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