We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel Code Query
Comments
-
If your original is generally working as expected, but you simply want the word "Fee" ...
=IFERROR(RIGHT(VLOOKUP(F22,'[Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),3),"Commission")
(Changes in red. Might not work but worth a go. Otherwise follow RMG's suggestion).0 -
The short answer is .... it doesn't.
It checks to see if the value you're looking for exists in column T and, if it does, gives you the value "Fee". If it can't find it, it gives you "Commission".:wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:
Any posts are my opinion and only that. Please read at your own risk.0 -
The short answer is .... it doesn't.
It checks to see if the value you're looking for exists in column T and, if it does, gives you the value "Fee". If it can't find it, it gives you "Commission".
Depending on the values in column AB, I can adjust the formula to take those into account as well.:wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:
Any posts are my opinion and only that. Please read at your own risk.0 -
The short answer is .... it doesn't.
It checks to see if the value you're looking for exists in column T and, if it does, gives you the value "Fee". If it can't find it, it gives you "Commission".
Depending on the values in column AB, I can adjust the formula to take those into account as well.
Makes sense but I would be interested in how you would incorporate AB for future reference.0 -
=IF(ISERROR(VLOOKUP(F22,Sheet2!$T:$AB,9,FALSE)),"Fee","Commission")
' if error in the vlookup- any kind of error, don't repeat value, just return fee, otherwise return commission0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.4K Banking & Borrowing
- 253.7K Reduce Debt & Boost Income
- 454.4K Spending & Discounts
- 245.5K Work, Benefits & Business
- 601.3K Mortgages, Homes & Bills
- 177.6K Life & Family
- 259.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards