troubleshooting Question

Need a Macro to fill the empty cells based on conditions - Excel 2010

Avatar of Subash Sundharan
Subash SundharanFlag for India asked on
Microsoft Excel
4 Comments1 Solution890 ViewsLast Modified:
I am looking for a Macro which will help me to fill the empty cells based on conditions.

Condition 1: If the ID starts with ‘IN’ and the country column is blank the then the MACRO should fill the country column as India. Likewise, if the ID starts with ‘US’ then country ‘United States’, if ID start with JP the country as ‘Japan’.

If the ID start in any other format do nothing..

Condition 2: If the cell in ‘Assigned’ column is blank then fill the column with the value in same raw from column ‘Team’.

For example in the sample excel file, Cell C4 & C6 is empty, so they should be replaced with E4 & E6 respectively.

Many Thanks in advance...
subsun.xlsx
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros