Urgennt- I Need Formula Or Macro For Find/replace In Excel

i have an excel sheet with first names and gender data in different columns. the problem is —-but some gender info is blank. i want to attain values to gender data like 1 or 2. if male=2 if female=1. and i know that mary is female ad mike is male.

so i need to post a value to the gender of a person if name is x. for example if gender column= blank, and the name column = mike then gender column write gender= 2 as gender value.

GENDER LAST_NAME FIRST_NAME
2 Hanson Mike
1 harrold sue
chang david

this empty gender must be=2

williams mary
this empty gender must be=1

in a sheet there is 50000 records, i have 20000 blank GENDER fields. so ineed to fill most of them

i need a formula /macro to run in excel.

i thought of trying this with 20-30 names, one by one.

if name is Sue make gender 1
if name is Mike make gender 2

but these are different columns

thank you
shawn

Web Based Bulk SMS, PRSMS Panle & Desktop Application by Yebocom99

I need Web Based Bulk SMS, Premium Rated SMS & Desktop Application for push and pull sms along with voice sms feature. it must be compatible with the following api’s : SMPP 3.4/HTTP/XML/DLL for both external and internal connections… (Budget: $250-$750 USD, Jobs: AJAX, HTML, Java, OSCommerce, PHP)


Spectacular Reviews by SomeoneWhoKnowsBetter by IoanaAndriescu

Having religiously read articles,magazines,newspapers,blogs,and websites for most of my life, I can assure you that my services can do nothing else but improve your business. You are a busy person so I… (Budget: $30-$250 USD, Jobs: Article Rewriting, Articles, Product Descriptions, Proofreading, Reviews)