Computing.Net > Forums > Programming > Excel and auto-fill driving me mad!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel and auto-fill driving me mad!

Reply to Message Icon

Name: Dane
Date: June 21, 2002 at 16:05:29 Pacific
Comment:

Hi all,
I usually post my words of wisdom and cries for help to the main Win 9x board, but hope I am in the correct place here to ask the following question:
I use Windows 98SE running Office Professional XP (which you will know does not require the XP OS).
I have 2 sheets in an excel file. One called "fans" (with columns of names and email addresses) the other called "cobra" (with just names of fans from my other database).
On the FANS sheet, I need to check whether the person I've just entered isn't already on the COBRA sheet, so in, say, field D1 I have the function
=LOOKUP(B1;Cobra!A1:A963)
Meaning: Look up the name in field B1 and compare it to any name in the COBRA sheet, rows 1 to 963.
If it finds the name, it automatically enters TRUE, otherwise it enters FALSE.
With my old Office Professional 97, I would just make sure that D2, D3, D4 held a similar function
=LOOKUP(B2;Cobra!A1:A963)
=LOOKUP(B3;Cobra!A1:A963)
=LOOKUP(B4;Cobra!A1:A963)
then mark these and use the handle marker to pull them all the way down to the bottom of the list, and it would only change the reference to "B". (A1:A963 would always stay the same). Now it changes everything.
In row 6 for example I get
=LOOKUP(B6;Cobra!A6:A969)
etc. which is wrong.
No matter how I set the settings in
Tools -> Edit, and no matter how lines I "pre-set" (even down to row 10 using
=LOOKUP(B10;Cobra!A1:A963)
it still changes the reference row numbers of the COBRA sheet.
Any ideas how I can stop it doing this ? It should only change the B reference and nothing else.
Many thanks for any hints or tips.
Dane




Sponsored Link
Ads by Google

Response Number 1
Name: cup
Date: June 21, 2002 at 23:05:42 Pacific
Reply:

Try absolute references eg

=LOOKUP(B2;Cobra!$A$1:$A$963)


0

Response Number 2
Name: Dane
Date: June 22, 2002 at 10:03:50 Pacific
Reply:

That did the trick, cup !!
So simple but so effective.
Bloody great, thanks a lot.
Dane


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Excel and auto-fill driving me mad!

Excel Vba Code www.computing.net/answers/programming/excel-vba-code-/14879.html

C program bug is driving me nuts www.computing.net/answers/programming/c-program-bug-is-driving-me-nuts/6468.html

cin just drives me crazy www.computing.net/answers/programming/cin-just-drives-me-crazy/14825.html