super easy question for u guys, pls help me!!

LMF

Board Regular
Joined
Mar 16, 2002
Messages
73
what is the difference between:

vlookup(A2, Range, 2, True)
&
vlookup(A2, Range, 2, False)

What difference does it make between true and false in a vlookup statement?
cause they seem to give u the same results

pls lmk
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
the false assures you the desired result regardless if the data table is sorted or not. This is the option I ALWAYS use.
 
Upvote 0
The difference is as follows:

To find the closest match in the first column of the table (sorted in ascending order) use TRUE

To find an EXACT match, use FALSE.

Therefore, depending on your data, there may be no discernible difference.

Best to always use FALSE though in my view.

Rgsd
AJ
 
Upvote 0
i used false, when there is no exact match, it goes to zero, how can i make it blank easily?

pls lmk
 
Upvote 0
False returns an exact match on an unordered list. Returns NA if not found.
True returns the a value even if an exact match is not found . Returns previous lower number if not found. Requires an ordered list.

example:
2
3
5
6
a vlookup for 4 with TRUE would return 3
a vlookup for 4 with FALSE would return n/a because 4 is not there
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top