Excel - Faulty Formulae

To whom it may concern,

The yellow-highlighted columns of the attached file contain formulae that give me incorrect output; three columns in total. I think that I am missing smth simple and that there is one solution to rectify this issue. I struggled with this for a bit, but at this point, I think that I just need a second pair of eyes. Any help would be extremely appreciated.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I found one error, not sure if it covers all of the problems.
B2 formula starts with =IF(A2="SF"
A2 is actually equal to "SF "  (note the space)
When I delete the space at the end of A2, the result changes to S
You could replace A2 with Trim(A2) throughout your formulae.
Considering how often that would be used, I'd prefer to have a column that is the trimmed version of A.  For example, in H2 use =trim(A2) and then use H2 in the formulae.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The problem here is your column references have trailing white spaces.
using TRIM( ) function can fix this....

For Column B row 2


For column D row 2


For Column F row 2

byundtMechanical EngineerCommented:
You could put the lookup tables in named ranges on a worksheet. You could then use really simple formulas, and any updating would be done to an easily understood table rather than a complicated formula. This is the way I would suggest doing it.

You could alternatively use VLOOKUP formulas like:

I've attached a sample file showing both sets of formulas.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.