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 Query

Hi All,


I am working in a locked spreadsheet via which I can't change any of the row/column layout. Within Column G I am trying to input a simple Vlookup formula that searches for a value in column H and returns the corresponding value within a separate tab. This should have been straightforward but I am being returned a #N/A even though there is the corresponding value within tab two.


How can I get around this? Below is my code:


=VLOOKUP(H30,'Tab2'!F4:G77,2,FALSE)

Comments

  • bingo_bango
    bingo_bango Posts: 2,594 Forumite
    edited 10 August 2016 at 9:27AM
    I'm fairly sure this will be a formatting issue. Check that the values in both the H column and that containing the lookup value are the same.

    i.e. if you are looking up a number, ensure the lookup and H columns are both formatted as numbers (use the error checker to convert to numbers).

    Also, ensure that the value you are searching is in Column F in Tab 2 (leftmost column).
    edit: and that column F in Tab 2 is sorted!
  • bengalknights
    bengalknights Posts: 5,022 Forumite
    Part of the Furniture 1,000 Posts
    Are the formats the same (try text to columns if using numbers) also include a dollar on F4:G77 so they are static ($F$4:$G$77)
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.1K Reduce Debt & Boost Income
  • 455K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 602.9K 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.