Hi, I have a sheet with a table with two columns: the first column says countries and the second column says fruits.
If I enter values on some of the fruits for some countries and leave the other rows blank, I want the countries with specified fruits be copied in a new table in another sheet. Like for example:
In the new sheet I want it to look like this:
I am relatively new to Excel VBA and I have absolutely no idea how to do this. Please help!
Code:
[LEFT][COLOR=#222222][FONT=Verdana]Countries Fruits[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]South Korea [/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]China [/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]United States [/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]Russia [/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]Australia [/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]Singapore[/FONT][/COLOR][/LEFT]
If I enter values on some of the fruits for some countries and leave the other rows blank, I want the countries with specified fruits be copied in a new table in another sheet. Like for example:
Code:
Countries Fruits
South Korea Orange
China
United States Apple
Russia Pineapple
Australia
Singapore Grapes
Code:
Countries Fruits
South Korea Orange
United States Apple
Russia Pineapple
Singapore Grapes
Last edited: