Determine Which Cell is N/A

unknownymous

Board Regular
Joined
Sep 19, 2017
Messages
249
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

Can you help me with the coding for this one? I have a long set of data but just need to figure this one out to help me save time (tab name is Data Sheet).

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Name[/TD]
[TD]Quantity[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]Country[/TD]
[TD]Group[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Ben[/TD]
[TD]100[/TD]
[TD]London[/TD]
[TD]N/A[/TD]
[TD]United Kingdom[/TD]
[TD]ECO[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Sean[/TD]
[TD]95[/TD]
[TD]Boston[/TD]
[TD]MA[/TD]
[TD]United States[/TD]
[TD]COR[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD]Millie[/TD]
[TD]83[/TD]
[TD]N/A[/TD]
[TD]N/A[/TD]
[TD]N/A[/TD]
[TD]ECO[/TD]
[/TR]
[TR]
[TD]004[/TD]
[TD]Karl[/TD]
[TD]78[/TD]
[TD]Los Angeles[/TD]
[TD]N/A[/TD]
[TD]United States[/TD]
[TD]COR[/TD]
[/TR]
[TR]
[TD]005[/TD]
[TD]Amy[/TD]
[TD]75[/TD]
[TD]N/A[/TD]
[TD]CA[/TD]
[TD]United States[/TD]
[TD]COR[/TD]
[/TR]
[TR]
[TD]006[/TD]
[TD]Dom[/TD]
[TD]60[/TD]
[TD]N/A[/TD]
[TD]N/A[/TD]
[TD]Italy[/TD]
[TD]ECO[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The macro will create another tab (rename as "REVIEW") whereas it will determine the following:

1. N/A City & Country (Column A & B)

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD]Millie[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

2. N/A City (Column D &E )

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD]Millie[/TD]
[/TR]
[TR]
[TD]005[/TD]
[TD]Amy[/TD]
[/TR]
[TR]
[TD]006[/TD]
[TD]Dom[/TD]
[/TR]
</tbody>[/TABLE]

4. N/A Country
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD]Millie[/TD]
[/TR]
</tbody>[/TABLE]


3. N/A City (US) (Column G&H)

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]004[/TD]
[TD]Karl[/TD]
[/TR]
</tbody>[/TABLE]

Any help will be much appreciated.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

Have you tried to use ... from the Menu ... Data Filter ?

HTH
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,251
Members
453,027
Latest member
Lost_in_spreadsheets

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