This formula worked a few weeks ago, but now ...

This formula worked a few weeks ago, but now it will only pull up the first value. (1 for Regular Time). The other values wonโ€™t pull up. I tried to reorder them and no matter what order, it would only pull up the first one. Additionally, when I put the โ€œTime and a halfโ€ first, it gave me a Parameter 3 error. I do have the column set as a number column. Any thoughts? Thanks, in advance!

=SUBSTITUTE([Rate], โ€œRegular Timeโ€, โ€œ1โ€),

SUBSTITUTE([Rate], โ€œDouble Timeโ€, โ€œ2โ€), SUBSTITUTE([Rate], โ€œTime and a halfโ€, โ€œ1.5โ€),

0 4 311
4 REPLIES 4

What column is set as number type?

Also the above formula seems like a section of a larger formula; how come those SUBSTITUTE(โ€ฆ) functions are comma separated with nothing else before/after them?! The whole thing ends with a comma?!

if it is a number column, I suspect youโ€™d want something like:

SWITCH([Rate],

โ€œRegular Timeโ€, 1, โ€œDouble Timeโ€, 2,

โ€ฆ )

@praveen Thanks, Praveen! That worked.

Top Labels in this Space