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!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

ExceL Formula Failing

Cotta
Cotta Posts: 3,667 Forumite
Hi All,

The Vlookup below is failing and it doesn't make any sense. I'm working off a static template and I need to use the value in "D30" as a lookup against a value within "tab2," however this is resulting in an error message (#N/A), even though the corresponding value is within "tab2". If I change the lookup value to "C30" the formula works fine, however I don't wish to use the value within "C30" and I can't change any locations within the "template" tab, how do I resolve this?

=VLOOKUP(VLOOKUP(D30,'tab2'!A:JU,MATCH(Template!I29,'tab2'!$1:$1,0),0),Sheet2!D:E,2,0)

Comments

  • Le_Kirk
    Le_Kirk Posts: 25,918 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    We don't know what is in D30 or C30. Could it be approximate/exact matching? Try this link for some help. I find if you can sort it yourself, you remember it better next time. Also breaking down the formula into manageable chunks (as previously advised) always helps find the error.
  • AndyPix
    AndyPix Posts: 4,847 Forumite
    Fifth Anniversary 1,000 Posts Name Dropper Photogenic
    I cant help noticing you ask an awful lot of excel questions ..


    Would it not be worth asking your employer for an advanced excel course if you are expected to do this kind of stuff for your job ?
    Rather than cobbling together solutions from forums ?


    Quite happy to help if i can, but it seems unfair that you have to resort to this kind of support


    Andy
  • Rubidium
    Rubidium Posts: 663 Forumite
    500 Posts
    What is the format of cells C30 and D30?
  • Cotta
    Cotta Posts: 3,667 Forumite
    Cell D30 contains a "general" reference number namely "GH12".


    Cell E30 contains a "general" number namely 000333444.
  • Ainsley1
    Ainsley1 Posts: 404 Forumite
    edited 24 August 2016 at 6:19PM
    We are a disadvantage being remote from the problem, it is very possible that there is nothing wrong with your formula but the matching required in the lookup cannot be located hence #n/a is returned.

    Why not take the advice posted on your threads and split up your formulae into separate cells linked together and use named ranges that will help us all to understand your sheets better....and will show you which bit of your complex formula is giving you the answer you do not expect....

    In this instance to prove it is the cell contents (d30 or c30) try changing them to something you think ought to be located....and then if it still cannot be found copy that destination cell contents and paste-value into cell d30. That might help you track down the problem.

    Also are you sorting the table(s) being looked up? Note: depending on the type of lookup specified there may well be problems if the data table is not sorted see, for example, explanations on one of the training sites exceljet that can be returned from a Google search.......
    ....oh did somebody already mention training?:T
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.1K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 603K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.