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 Query (Last one)
choyaa
Posts: 226 Forumite
in Techie Stuff
I know I've posted a few recently, I hope people don't mind me posting one final query.
I have to following code and it returns a value, however is it possible to remove the first two characters, is this possible?
=VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0)
I have to following code and it returns a value, however is it possible to remove the first two characters, is this possible?
=VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0)
0
Comments
-
You could use the MID command.
Check the Excel help docs.0 -
I've placed the following piece of code into it from the Excel Help documents, it's still not working.
=RIGHT(a30, LEN(A30)-2,VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0)0 -
=RIGHT(A30,LEN(A30)-2) is correct. Note that you have a space between your comma after a30 and before LEN.
What happens when you press enter? You certainly have a parenthesis (bracket) missing - you have 4 opening and only 3 closing. Your VLOOKUP formula is incorrect. The formula should start with =VLOOKUP(A1,B1:C20,2) where A1 contains the value you are trying to find, B1:C20 is the range of data, i.e. where to look and 2 is the column offset. What I always do in these circumstances is to build the formula by stages. Set your lookup range and populate it with your data, then add the LOOKUP formula in simple terms gradually adding complexity0 -
I've tried the following but an error message occurs, it advised that there are too many arguments.
=RIGHT(K30,LEN(K30)-2),(VLOOKUP(A30,'tab2'!A:IV,MATCH,K29,'tabs'!1:1,0)0)0 -
RIGHT(Text,Length) ... that's what the RIGHT command entails.
Length ... you need to use the LEN command, yes, but you need to use it on the VLOOKUP result.
=RIGHT(VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0),LEN(VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0))-2)0 -
RIGHT(Text,Length) ... that's what the RIGHT command entails.
Length ... you need to use the LEN command, yes, but you need to use it on the VLOOKUP result.
=RIGHT(VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0),LEN(VLOOKUP(A30,'second tab'!A:IV,MATCH(Template!K29,'second tab'!1:1,0),0))-2)
That works to perfection, however I don't quite understand it - can you run through this please? Sorry to be a pain but Excel is new to me and I am still getting my head around it.0 -
You know how the VLOOKUP works already - yes?
VLOOKUP returns the value you're looking for, based on e.g. cell A30.
LEN gets the length of that value (which is why it needs to be within the LEN() command as well - the length of A30 is meaningless; it is the length of the VLOOKUP value based on A30 that matters).
RIGHT returns required characters from the VLOOKUP value.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 355.8K Banking & Borrowing
- 254.9K Reduce Debt & Boost Income
- 456.2K Spending & Discounts
- 248.4K Work, Benefits & Business
- 606K Mortgages, Homes & Bills
- 179K Life & Family
- 263.9K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.7K Read-Only Boards
