Ready, steady… save!
You don’t need a chart to join in. Here are 2 ways to record your savings:
1. Cross it off
Pop a chart into your first post. Saved an amount? Cross it out! Read more »
£0.01 £0.02 £0.03
2. Write it down
Skip the chart and add updates to your first post. Read more »
“Another +£3 saved today. Go me!”
Use +£ before each new saving so it counts towards your total.
📨 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
Cotta
Posts: 3,667 Forumite
in Techie Stuff
Hi All,
The following code is functioning as required, however when the code meets the criteria it returns three different values "New Fee," "Source Fee" and "Old Fee" or otherwise it returns "Commission". Is there anyway to adjust this code so that instead of returning the variations of fee it simply returns "Fee"?
=IFERROR(VLOOKUP(F22,'[Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),"Commission")
Thanks
The following code is functioning as required, however when the code meets the criteria it returns three different values "New Fee," "Source Fee" and "Old Fee" or otherwise it returns "Commission". Is there anyway to adjust this code so that instead of returning the variations of fee it simply returns "Fee"?
=IFERROR(VLOOKUP(F22,'[Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),"Commission")
Thanks
0
Comments
-
I dont have excel to test this out on but try
=IF(IFERROR(VLOOKUP(F22,'[Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),"Commission"))="Commission","Commission","Fee")
That's just wrapping an IF statement around it, they'll be better ways of doing it0 -
Thanks Mass but this brings up an error message.0
-
I think I had 1 extra bracket, try this
=IF(IFERROR(VLOOKUP(F22,'[Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),"Commission")="Commission ","Commission","Fee")0 -
Excel corrects the code to the following, however this only returns a value of "FALSE" within all of the cells.
=IFERROR(VLOOKUP(F3,'[Sector Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),"Commission")0 -
My final effort

=IF(VLOOKUP(F22,'[Fee Clients.xlsx]Sheet2'!$T:$AB,9,FALSE),"Commission","Fee")0 -
Actually I havent given up yet. Im just curious why the IF statement doesnt work.
In another cell on the spreadsheet type this
=IF(D6="Commission","Commission","Fee")
And replace D6 with the cell that the formula is in. Does this new cell give the desired outcome.0 -
Actually I havent given up yet. Im just curious why the IF statement doesnt work.
In another cell on the spreadsheet type this
=IF(D6="Commission","Commission","Fee")
And replace D6 with the cell that the formula is in. Does this new cell give the desired outcome.
Perfect little workaround, thank you very much.0 -
Try this (untested):-
=if(iserror(match(F22,'[Fee Clients.xlsx]Sheet2'!$T:$T,0)),"Commission","Fee"):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 -
We should be able to get that all inside 1 cell. Try rmg1's formula.
If that doesnt work someone else should be able to get it all inside 1 cell.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 355.9K Banking & Borrowing
- 255K Reduce Debt & Boost Income
- 456.2K Spending & Discounts
- 248.4K Work, Benefits & Business
- 606.1K Mortgages, Homes & Bills
- 179K Life & Family
- 263.9K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.7K Read-Only Boards