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).

CodeNameQuantityCityStateCountryGroup
001Ben100LondonN/AUnited KingdomECO
002Sean95BostonMAUnited StatesCOR
003Millie83N/AN/AN/AECO
004Karl78Los AngelesN/AUnited StatesCOR
005Amy75N/ACAUnited StatesCOR
006Dom60N/AN/AItalyECO

<tbody>
</tbody>

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

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

CodeName
003Millie

<tbody>
</tbody>

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

CodeName
003Millie
005Amy
006Dom

<tbody>
</tbody>

4. N/A Country
CodeName
003Millie

<tbody>
</tbody>


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

CodeName
004Karl

<tbody>
</tbody>

Any help will be much appreciated.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,

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

HTH
 
Upvote 0

Forum statistics

Threads
1,215,775
Messages
6,126,828
Members
449,343
Latest member
DEWS2031

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