Forms

  • Thread starter Thread starter Kord
  • Start date Start date
K

Kord

We use an excel 2000 form as an order form.

We enter the customer "bill to address" manually.

What is the best way to get excel to automatically fill
in the "bill to address" cells based on data entered in
a "customer number" cell.

We have a separate excel worksheet with "customer
numbers" and "bill to" data.

Thanks
 
We use an excel 2000 form as an order form.
We enter the customer "bill to address" manually.

What is the best way to get excel to automatically fill
in the "bill to address" cells based on data entered in
a "customer number" cell.

By cell do you mean an input box on the form ? If so you can use the
onChange event to trigger some code to look through a range in your customer
numbers work sheet and pull the address.
 
Take a look at the =vlookup() worksheet function.

If your separate sheet is named CustomerData and your custnumbers are in column
A and the Bill-to address is in column B:

=if(c3="","",vlookup(c3,customerdata!a:b,2,false))

(if you put the customer number in C3.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top