Fill in missing info in the worksheet

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
you need to find each blank cell, then look up the country on a list of countries and their capitals. You will find that on the web, copy it and paste it in excel, sort the countries into alphabetical order, name the table "capitals" and if country with a blank next to it is in D1, in E1 put =vlookup(D1,capitals,2)
 
Upvote 0
you need to find each blank cell, then look up the country on a list of countries and their capitals. You will find that on the web, copy it and paste it in excel, sort the countries into alphabetical order, name the table "capitals" and if country with a blank next to it is in D1, in E1 put =vlookup(D1,capitals,2)

But I need to write a macro not use vlookup.
 
Upvote 0
using a macro, run down the column till you find a blank. Move one cell to the left and set say CC= to that cell.

Then run down the list of countries till you find a match and set say CAP one cell to the right. Now run down the first column till you find the blank and set that cell to CAP. Now repeat the whole process.
 
Upvote 0

Forum statistics

Threads
1,216,459
Messages
6,130,758
Members
449,588
Latest member
accountant606

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