Copy cell to new tab from another tab but skip empty cells

Trislu

New Member
Joined
Jul 17, 2019
Messages
3
Hi,

Please HELP!

I am trying to create a 2nd tab where it looks for text "OFF" in ColumnB from ColumnA, and copy "Name" in ColumnA to 2nd tab. At the same time, the function skips blank cell.


TAB 1
(ColumnA) (ColumnB)
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Amount[/TD]
[/TR]
[TR]
[TD="class: xl66"]Anne[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Amy[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]Mike[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]Doe[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Anne[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Mike[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]John[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]Doe[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
</tbody>[/TABLE]


Ideal Tab2
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Amount[/TD]
[/TR]
[TR]
[TD="class: xl66"]Anne[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Doe[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Anne[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Mike[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: xl66"]Doe[/TD]
[TD="class: xl66"]OFF[/TD]
[/TR]
</tbody>[/TABLE]

I tried to use IF function, but it doesn't skip blank cell.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Be more specific, I want the 2nd tab only pick up values with "OFF" in column B, the Tab 1 can be

TAB 1
(ColumnA) (ColumnB)
[TABLE="class: cms_table, width: 128"]
<tbody>[TR]
[TD="class: cms_table_xl65, width: 64"]Name[/TD]
[TD="class: cms_table_xl65, width: 64"]Amount[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Anne[/TD]
[TD="class: cms_table_xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Amy[/TD]
[TD="class: cms_table_xl66"][/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Mike[/TD]
[TD="class: cms_table_xl66"][/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Doe[/TD]
[TD="class: cms_table_xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Anne[/TD]
[TD="class: cms_table_xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Mike[/TD]
[TD="class: cms_table_xl66"]OFF[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]John[/TD]
[TD="class: cms_table_xl66"]ON[/TD]
[/TR]
[TR]
[TD="class: cms_table_xl66"]Doe[/TD]
[TD="class: cms_table_xl66"]OFF[/TD]
[/TR]
</tbody>[/TABLE]

 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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