Page 1
Page 1
Started By
Message

What's wrong with my VLOOKUP formula?

Posted on 1/6/21 at 1:06 pm
Posted by deeprig9
Unincorporated Ozora, Georgia
Member since Sep 2012
63784 posts
Posted on 1/6/21 at 1:06 pm
I want Sheet 2 Column B to display a value by looking at Sheet 2 Column A, looking for a match on Sheet 1 Column A, and returning the value of Sheet 1 column B. Exact match.

In sheet 2, I have this entered in B2.

=VLOOKUP(A2,Sheet1!A:A,2,FALSE)


What's wrong?
Posted by DynaMike
Member since Aug 2015
853 posts
Posted on 1/6/21 at 1:22 pm to
The table array has to include the whole table and the column number is what is returned
This post was edited on 1/6/21 at 1:25 pm
Posted by deNYEd
Houston
Member since Jul 2007
9689 posts
Posted on 1/6/21 at 1:27 pm to
USE XLOOKUP!!!!
Posted by CAD703X
Liberty Island
Member since Jul 2008
77890 posts
Posted on 1/6/21 at 1:29 pm to
its like the bat signal with you. do you have a notification setup when the keyword 'vlookup' shows up here?
Posted by deNYEd
Houston
Member since Jul 2007
9689 posts
Posted on 1/6/21 at 1:31 pm to
quote:

its like the bat signal with you. do you have a notification setup when the keyword 'vlookup' shows up here?

I did chuckle at the thought of my xlookup promptness, but the world needs to know. I also enjoy clicking on every excel thread bc I wager the house it contains "vlookup"
Posted by lsu02150
BR
Member since May 2009
195 posts
Posted on 1/6/21 at 1:49 pm to
=VLOOKUP(A2,Sheet1!A:B,2,FALSE)

or

=INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))
Posted by CAD703X
Liberty Island
Member since Jul 2008
77890 posts
Posted on 1/6/21 at 1:50 pm to
quote:

bc I wager the house it contains "vlookup"
but would wager running backwards with a beer and a cigarette?
Posted by castorinho
13623 posts
Member since Nov 2010
82010 posts
Posted on 1/6/21 at 2:38 pm to
quote:

ts like the bat signal with you. do you have a notification setup when the keyword 'vlookup' shows up here?

to be fair, it's such a game changer that I don't blame him. Saw it in one of his posts here and it changed my life!

With that being said, vlookup is a tad faster for what the OP is trying to do here.

quote:

=VLOOKUP(A2,Sheet1!A:A,2,FALSE)


What's wrong?

Look at your array
Posted by deNYEd
Houston
Member since Jul 2007
9689 posts
Posted on 1/6/21 at 3:33 pm to
quote:

but would wager running backwards with a beer and a cigarette?

prob not. I'm more of a lifter these days. Although, I had not run for 5 years before that bet. However, I have not run one stitch since that day either. I have another 40lbs as well. I believe I ended up with a grand total of $40 and a box of pop tarts from that wager. I would not do it again for less than 2k and even that gives me pause.
Posted by TU Rob
Birmingham
Member since Nov 2008
12724 posts
Posted on 1/13/21 at 2:34 pm to
Trying to use some sort of lookup formula, but I'm not sure if I need a SUMIF statement, or if I can do it all with lookups. I have a large tab with line items split out by a set of 5 common names. My data runs from A87 down to AH803 on one tab, and on another tab I have those 5 common names across the top and the various expense lines going down the left side. I want to sum up the last 12 columns, W-AH, (months for 2021) if it is a match for Column A and Column B. Column A is a geographic description, and Column B is the expense line item. So I want to sum up if Column A is a certain geography, and if Column B is a certain expense. I could easily create a VLOOKUP on each row in my file, but thought there would be a way I could do it once and have it linked to what I want it to return from Columns A and B in the other tab.
Posted by ODP
Conroe
Member since Oct 2015
1938 posts
Posted on 1/13/21 at 3:24 pm to
My company excel doesn't have xlookup, I want to try it so bad!
Posted by deNYEd
Houston
Member since Jul 2007
9689 posts
Posted on 1/13/21 at 8:02 pm to
Sounds like you need a SUMIFS statement. First put in your sum range than you can have multiple criteria
Posted by tigercross
Member since Feb 2008
4918 posts
Posted on 1/14/21 at 4:08 pm to
Get familiar with all of the powers of SUMPRODUCT. It does an amazing job of summarizing. This article is a good start:

LINK /
Posted by WhiskeyThrottle
Weatherford Tx
Member since Nov 2017
5288 posts
Posted on 1/15/21 at 9:49 am to
Haven't seen the sumproduct formula before. Will have to get familiar with that one.

I've since moved over to SQL Developer but I spent about 10 years building reporting with a handful of formulas. Countif(s), Sumif(s) and VLookup.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram