Hello, i am trying to return more than one cell when doing a vlookup. I cant workout how to do this.
I have attached an example spreadsheet that will hopefully explain better what i mean.
Thank you any help
Hello, i am trying to return more than one cell when doing a vlookup. I cant workout how to do this.
I have attached an example spreadsheet that will hopefully explain better what i mean.
Thank you any help
Don't see an attachment.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Let's assume you have a list of costs in column A (headed 'Cost'), range A2:A10, and in column B you have a list of fruit, range B2:B10.. . A . . BYou want to list the fruit which costs £1.00, which is in cell D2, with the results in column E2 downwards.
.1 Cost .Fruit
.2 £1.00 Apples
.3 £1.10 Oranges
.4 £1.00 Bananas
.5 £1.00 Pears
.6 £1.10 Pineapples
.7 £1.20 Peaches
.8 £1.00 Mandarins
.9 £1.10 Kiwis
10 £1.20 Mangoes
Put this in E2:
Formula:Please Login or Register to view this content.
It's an array formula, so enter it using Ctrl-Shift-Enter not just Enter. You'll see curly brackets {} appear round the formula (don't enter them yourself).
Drag the formula down as far as you need.
You should get the answers:Apples
Bananas
Pears
Mandarins
#NUM!
#NUM!
To get rid of the #NUM! errors, put the formula in E2 inside an error checker:
Formula:Please Login or Register to view this content.
Again, enter with Ctrl-Shift-Enter and drag down.
Obviously, change the ranges to match what your ranges are.
Does that do what you need?
ps to attach a file, click 'Go Advanced' then scroll down and click 'Manage Attachments'
Regards,
Aardigspook
I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
You don't need to give me rep if I helped, but a thank-you is nice.
Hello, thank you
this is the attachment.
If you want multiple results to appear in a single cell that will require a VBA function.
Putting multiple results in separate cells would be easier and can be done with formulas.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks