I have a list of products listed on one worksheet where you can select how many of each you want, but not every product will have a value. In a separate worksheet I want it to only pull over the product that have a amount selected. Please Advice.
First Worksheet:
A B
a 3
c 45
d
e
f 10
Desired Second Worksheet:
A B
b 3
c 45
f 10
You could use a VBA subroutine to achieve this, if you/your end user is allowed macros. In the example below I'm assuming you haven't renamed the worksheets and they're called "Sheet1" and "Sheet2" respectively - if you've renamed them you'll have to change them in the code to match.
1) Show the developer toolbar:
[http://www.traineetrader.com/excel-quick-tips-howto-enable-the-developer-toolbar-in-excel-20102011/][1]
2) On the developer toolbar click insert, then add a button (doesn't matter where)
3) right click the button and 'Assign Macro' then click 'New'
4) this code should do it:
Any questions - let me know!
You can get what you want with a simple VBA subroutine:
What it does is it goes through all of the rows with data in column A, checks if the associated value in column B is equal to "", and if it isn't, it copies over both values onto another sheet. Hope this helps!