Copy Values and skip blank cells? - Vlookup

Andrewgray123

New Member
Joined
Jul 27, 2016
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello,

Just a bit of background first, i'm doing a very simple IF Statement/Vlookup;

My RAW data as an example is formatted like so;

Item (Col A)Quantity (Col B)
A10
B
C50


I've then got another sheet which is the same as above; however i'm going to do an if statement, so it reads IF(B2 > 0) Then Vlookup to return the values in B2, ELSE "")
So the sheet with the Vlookup would then look like;

Item (Col A)Quantity (Col B)
A10
C50


I want to display this information, without the missing row. Obviously i could format it as a table, then hide the rows, but is there a cleaner way to hide these rows (which have returned a null value from a VLookup)

The reason behind this, the RAW data sheet could possibly contain 250 lines; the target sheet may only have 30 values populated out of these 250 lines.

Could anyone offer any hints or tips on how to achieve this?

Many Thanks

Andy
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thanks,

Done that there and popped it in;

i'm using Microsoft® Excel® for Microsoft 365 MSO (16.0.14131.20278) 32-bit on Windows 10.

Many Thanks

Andy
 
Upvote 0
Thanks for that how about something like
Excel Formula:
=FILTER(Sheet1!A2:B100,Sheet1!B2:B100>0)
 
Upvote 0
Thanks for that how about something like
Excel Formula:
=FILTER(Sheet1!A2:B100,Sheet1!B2:B100>0)
Thanks, i've used excel for years and never once used the FILTER command!

Never worked with > 0 however it worked perfectly with <> ""; think i may have to adapt it slightly in the future to return <> "" OR > 0

Many Thanks

Andy
 
Upvote 0
Do you have formulae in in col B of your data sheet?
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,555
Members
453,053
Latest member
Kiranm13

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