Forum Discussion
wanalearn
Feb 14, 2023Brass Contributor
formula or function How to sort a payroll report
I have imported a payroll report to Excell
However, the regular ''OT'' and Total are in the same column on other rows
I want a formula or function to put it on the same row in different columns
see attached what I did manually in column H I j
- wanalearnBrass Contributor
I asked a similar question here
https://techcommunity.microsoft.com/t5/excel/is-there-a-formula-or-function/td-p/3616173
I got an answer from dscheikey to use =Filter () however it doesn't work here since I want it should stay on the same row just on a different column
I also got from mtarler it might work for me here, however, it is a long formula, I am sure there are more simple ones- Patrick2788Silver Contributor
I think mtarler 's solution from the other discussion is a good one. If length is an issue, you could fold the formula into a 'Payroll' Lambda where only the table or range is needed:
=Payroll(Table1)
If this works for you, please give credit to Matt for that formula from September.
- wanalearnBrass Contributorcan you explain how to fold it in a Payroll Lambada