• Welcome to Poasters Computer Forums.
 

News:

Welcome to the ARCHIVED Poasters Computer Forums (Read Only)

Main Menu

Can excel automatically fill cells with info?

Started by Traveller, August 19, 2008, 00:35 hrs

Previous topic - Next topic

Traveller

Hi All.

Say, for example, I have a few columns in Excel 97 (Name, Address 1, Address 2, Telephone number, etc, etc.) and it's always the same three or four persons' details which I input every time, for which I have created a drop down list for the names of the people. How can I make Excel automatically complete the remainder of the row (address, tel no, etc) as soon as I click the drop down arrow and select a name from the Name column?

Thanks.

scuzzy

The only way that I can think of doing it would be using if/then statements. For example:


=IF(A1="Bob","101 Main St")
Antec Performance TX640B Case | WinXP Pro SP3 & Win7 64-bit | Gigabyte GA-EP45-UD3R | Intel Core 2 Duo E8500 Wolfdale LGA 775 3.16GHz Dual-Core | 8GB (4x2GB) PC6400 G-Skill RAM | eVGA 7600GT 256MB PCI-E | 74GB WD Raptor SATA 16MB Cache | 74GB WD Raptor SATA 8MB Cache | 320GB Seagate Barracuda SATA 16MB Cache | External 640GB WD Caviar SATA 32MB Cache | Sony DRU-V200S DVD/RW | PC Power & Cooling Silencer 500W | Samsung SyncMaster 2494 (24") LCD Monitor | LG Flatron W2361V (23") LCD Monitor

scuzzy

After giving this a little thought, you'd need to use nested IF statements for what you're trying to accomplish. For example:


=IF(A1="Bob","101 Main St",IF(A1="John","25 Daisy Ln",IF(A1="Bill","50 Rose Dr")))


If you enter the above formula in cell A2, you'd get the appropriate address depending on the name you enter in A1.

Entering Bob will give you 101 Main St
Entering John will give you 25 Daisy Ln
Entering Bill will give you 50 Rose Dr

However, I believe Excel limits you to 7 nested IF statements.

The above formula will give a False value if A1 is left blank. A way around that is to add a comma and a couple quotes at the end of the formula as follows:


=IF(A1="Bob","101 Main St",IF(A1="John","25 Daisy Ln",IF(A1="Bill","50 Rose Dr","")))
Antec Performance TX640B Case | WinXP Pro SP3 & Win7 64-bit | Gigabyte GA-EP45-UD3R | Intel Core 2 Duo E8500 Wolfdale LGA 775 3.16GHz Dual-Core | 8GB (4x2GB) PC6400 G-Skill RAM | eVGA 7600GT 256MB PCI-E | 74GB WD Raptor SATA 16MB Cache | 74GB WD Raptor SATA 8MB Cache | 320GB Seagate Barracuda SATA 16MB Cache | External 640GB WD Caviar SATA 32MB Cache | Sony DRU-V200S DVD/RW | PC Power & Cooling Silencer 500W | Samsung SyncMaster 2494 (24") LCD Monitor | LG Flatron W2361V (23") LCD Monitor

Traveller

Thanks Scuzzy! I am playing with it.

Is it the same for the XP version? Does XP have a limit of 7 as well?

Thanks.