Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TimR
 
Posts: n/a
Default excel novice question on filling in missing fields/cells

I have an Excel file of about 3000 names, addresses, zip codes, etc. This
is used for a mailer database for addressing. Most of the records have a
first and/or last name field completed. However...as the xls file is
updated...there are occasionally records with no FirstName or LastName
available....only the street address...etc.

Is there a way that I can automatically have Excel fill in a text string if
and when my xls file contains records without a first name and last name.

In other words...if both the FirstName field and the LastName field are
empty in a record (row)...can I have Excel automatically enter a text string
(say "Current Resident") into the blank FirstName field...and how do I go
about this ?

Thanks in advance...

Tim R


  #2   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default excel novice question on filling in missing fields/cells

Hi TimR,
One way is to copy all the data then paste it somewhere else on the
sheet, but not an ordinary paste, do Paste SpecialPaste All then click
the Paste Links button.
Then with the pasted column of Names select the top name and type in
the following formula (I have assumed that the original top name is in
A2)...

=IF(A2="","Current Resident",A2)

Fill this formula down to the bottom of the pasted data to replace the
pasted link formula and you should get the desired result.

Hope this helps

Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.misc
TimR
 
Posts: n/a
Default excel novice question on filling in missing fields/cells

Thanks ken...Worked good...Now..Is there a way to save the new values in the
copied rows...So I can delete the original rows in order not to confuse my
mailing/address /sorting program ?

Tim

"Ken Johnson" wrote in message
ups.com...
Hi TimR,
One way is to copy all the data then paste it somewhere else on the
sheet, but not an ordinary paste, do Paste SpecialPaste All then click
the Paste Links button.
Then with the pasted column of Names select the top name and type in
the following formula (I have assumed that the original top name is in
A2)...

=IF(A2="","Current Resident",A2)

Fill this formula down to the bottom of the pasted data to replace the
pasted link formula and you should get the desired result.

Hope this helps

Ken Johnson



  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default excel novice question on filling in missing fields/cells

Hi Tim,

1. Select all of the pasted data then copy it.
2. If your original data starts in A2 then click in A2 then go Paste
Special select "Values" on the Paste Special dialogOK.

This will get you back to your original data position and previously
blank FirstName cells will now show "Current Resident".

3. You can then delete the copy of your original data that was used to
generate the "Current Resident" entries.

Hope this helps.

Ken Johnson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rows 1-2 missing from excel worksheet Perplexed Excel Worksheet Functions 1 October 29th 05 03:09 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Cut and Paste Question for an Excel Guru K B via OfficeKB.com Excel Discussion (Misc queries) 2 July 13th 05 07:03 PM
Missing values in Excel Line Chart mw55309 Charts and Charting in Excel 1 January 19th 05 12:10 PM
Missing function in Excel 2003 Galldrian Excel Discussion (Misc queries) 2 November 30th 04 12:34 PM


All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"