I'm using a table to track truck activity. I'm using an IF(VLOOKUP) formula to assign a rate to each entry. The formula uses data stored in another tab, and the conditions it needs to meet are either "daily" or "stop." The formula is in the last column to the right. When we started using this table, everything worked fine; the formula automatically carried over to the next (row) entry, and the calculations were correct. Right now, the table has almost 6K rows.
The formula is: IFERROR(IF(VLOOKUP([@[Vehicle '#]],EquipRates,5,0)="Daily",VLOOKUP([@[Vehicle '#]],EquipRates,4,0)/[@Stops],VLOOKUP([@[Vehicle '#]],EquipRates,4,0)),"")
Out of nowhere, (a) the "value if false" portion of the formula is no longer working; this portion needs to meet the "stop" condition. . VLOOKUP([@[Vehicle '#]],EquipRates,4,0)
Furthermore, not only does it not give me the result I need, when I enter a new row/entry, (b) this portion of the formula (in blue below) is automatically changing to this:
IFERROR(IF(VLOOKUP([@[Vehicle '#]],EquipRates,5,0)="Daily",VLOOKUP([@[Vehicle '#]],EquipRates,4,0)/[@Stops],VLOOKUP([@[Vehicle '#]],L5370EquipRates,4,0)),"")
And, (c) if I drag the previous cell's formula down, it flags it as an error.
I've tried entering the formula from scratch and dragging it down. I've checked the settings to make sure the auto-fill options are on. I've checked the values in the other tab. I've checked for formatting, extra characters, text vs. numbers, typos, etc. I've deleted empty rows and columns. And nothing. Every new entry has the wrong formula (in blue above). If the new entry meets the "daily" condition, the "value if true" part of the formula works. The issue is only with entries that meet the "stop" condition ("value if false). I don't know what else to look for to fix this.
If anyone has any suggestions on what to look for, I'd greatly appreciate it.
The formula is: IFERROR(IF(VLOOKUP([@[Vehicle '#]],EquipRates,5,0)="Daily",VLOOKUP([@[Vehicle '#]],EquipRates,4,0)/[@Stops],VLOOKUP([@[Vehicle '#]],EquipRates,4,0)),"")
Out of nowhere, (a) the "value if false" portion of the formula is no longer working; this portion needs to meet the "stop" condition. . VLOOKUP([@[Vehicle '#]],EquipRates,4,0)
Furthermore, not only does it not give me the result I need, when I enter a new row/entry, (b) this portion of the formula (in blue below) is automatically changing to this:
IFERROR(IF(VLOOKUP([@[Vehicle '#]],EquipRates,5,0)="Daily",VLOOKUP([@[Vehicle '#]],EquipRates,4,0)/[@Stops],VLOOKUP([@[Vehicle '#]],L5370EquipRates,4,0)),"")
And, (c) if I drag the previous cell's formula down, it flags it as an error.
I've tried entering the formula from scratch and dragging it down. I've checked the settings to make sure the auto-fill options are on. I've checked the values in the other tab. I've checked for formatting, extra characters, text vs. numbers, typos, etc. I've deleted empty rows and columns. And nothing. Every new entry has the wrong formula (in blue above). If the new entry meets the "daily" condition, the "value if true" part of the formula works. The issue is only with entries that meet the "stop" condition ("value if false). I don't know what else to look for to fix this.
If anyone has any suggestions on what to look for, I'd greatly appreciate it.