Do you have if statements that are long and confusing? Maybe several nested together, every time you look at it you need to think about what it does?
Why not use a more simple function, a Lookup, either Vlookup or Hlookup. Instead of nesting an if you create a data table with the values and what their corresponding values are i.e.:
Monday 35
Tuesday 54
Wednesday 63
Thursday 24
Friday 73
The first column is what you are matching up, the test part of the if statement, the 2nd column is the value to return, what would be in the true part of the if statement.
The if would look something like this:
=if (A1 =”Monday”, 35 , if (A1 = “Tuesday”, 54 , if (A1 = “Wednesday”, 63 , if (A1 = “Thursday”, 24 , 73)
I am only using 5 days of the week for this example imagine if I tried it will months of the years or states in a country. I can get the same answers from the following:
= VLookup (A1, MyTable, 2, False)
This works when the table with the 2 columns is named MyTable. The function used makes the calculation much shorter and easier to change, if you want to add more variables you add to the lookup table then redefine the named range. The calculation will automatically update.
Do you have any shorter functions or calculations that save you time?