Help with a function/formula

julievandermeulen

Board Regular
Joined
Jan 25, 2020
Messages
107
Office Version
  1. 365
Platform
  1. Windows
I need help writing a function/formula


in tab Sheet 3
in cell D7
I want it to subtract .5 if there is a "x" in Cells A2:A5 but I can't figure it out.
 
Thank you. I need the subtotals for Quickbooks. But I may try this formula in another workbook I have.
 
Upvote 0
I need the subtotals for Quickbooks. But I may try this formula in another workbook I have.
I'm not certain what you are saying but it sounds like you are suggesting that my formula does not produce the results you want?
If it is just that you don't want the grand total included, then the formula (to still produce all the other results at once) would be

25 03 29.xlsm
ABCDEF
1lunchtime intime outtotal time
208:0009:001s
3x09:0011:002s
411:0011:300.5r
511:3012:000.5b
6Total
7r0.5
8s2.5
9b0.5
Sheet3 (2)
Cell Formulas
RangeFormula
D7:D9D7=BYROW(C7:C9,LAMBDA(rw,SUM((F2:F5=rw)*((C2:C5-B2:B5)*24-(A2:A5="x")*0.5))))
Dynamic array formulas.
 
Upvote 0

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