Forum Discussion
kerry590
Jul 26, 2023Copper Contributor
Office Space Ranking System using formulas
I am trying to develop a spreadsheet that will flag users if they warrant a single or shared office space, attached is a rough start I have going. I am running into 2 main problems: 1. How to ge...
Patrick2788
Jul 26, 2023Silver Contributor
Perhaps this one:
=LET(
title_pts, XLOOKUP([@Title], Rankings[Title], Rankings[Rank], 0),
Service, YEAR(TODAY()) - [@[Year Hired]],
service_pts, XLOOKUP(Service, YrsService, points, 0, -1),
total, title_pts + service_pts,
IF(total > 30, "Yes", "No")
)
Note: Some of the title names vary slightly between the two sheets. I made them the same so the lookups would work.
kerry590
Jul 31, 2023Copper Contributor
Follow up question, I was able to get some of your formulas working. Some I was able to reuse an old one. However in Column L I cannot figure out how to conditional format the "Current Space" to highlight based on the data in Column K.
Basically:
if No = Single then flag
No = Shared
Yes = Single
If Yes = Shared then flag
I have tried if/Then formulas but kept getting errors.
Please see the amended
- Patrick2788Jul 31, 2023Silver Contributor
This is the formula for the conditional:
=OR(AND($K2="No",$L2="Single"),AND($K2="Yes",$L2="Shared"))