LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default Need Destination cell to ref origin cell, but w/ many variable

Points about VLookup

VLOOKUP(reference, Range to lookup, Column Offset, [True/False])

The reference is what you lookup (C2 in Ron's example)
The range with Table (Ron suggested columns X and Y for store number and
County) i.e Y1:Z31; adjust this range to suite your list.
Note that the reference for the table, the store number must be on the left
of the table and in ALPHABETICAL ORDER so sort the list when its complete

Ron has expressed the true/ false part as a number and will vllokup will
express #NA! if and exact match is not found. And it may not be found if the
list is not in store number.

Regards
Peter
"Ms.shopalot" wrote:

I don't know what I am doing wrong! Everything makes sense to me except for
the part that is :$Z$31,2,0) What do those numbers represent? When I type in
the entire formula it returns #N/A
Everything else is set up exactly as you had laid it out...store num in
column Y, County in Column Z

Does that make sense? What am I doing wrong?

Ms.Shopalot

"Ron Coderre" wrote:

Try something like this:

Put the XRef list of STORE_NUM and COUNTY into a separate list.

Example:
refs Col_Y Col_Z
Row_1 STORE_NUM COUNTY
Row_2 7545 Baltimore County
Row_3 7567 Baltimore County
Row_4 2612 Montgomery County
Row_5 2646 Montgomery County

Then.....if
C2: 7567

This formula returns the COUNTY associated with that STORE_NUM
L2: =VLOOKUP(C2,$Y$1:$Z$31,2,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ms.shopalot" wrote:


I need help with a formula. I dont know how to do a Macro so hopefully
someone can help me without me getting completely confused! I am going to get
somewhat specific because I dont know how else to explain what I am needing
help with! Thanks so much in advance!

Here is my dilemma:

I have Column C set up as store numbers. However, I have Column L set up to
represent the County that the store is located. I need to have a way to
return L automatically depending on the store # that is inserted into column
C. This is going to be huge because I have 63 stores (Column C) and about 10
different counties (column L)! The below is what I started with but I dont
know how to formulate this!

If column C1 has €ś7545€ť or €ś7567€ť then column L1 = €śBaltimore County€ť but
if Column C1 has €ś2612€ť or €ś2646€ť then column L1 = €śMontgomery County€ť (etc,
etc!)


HELP PLEASE!!!! Ahhhh!



 
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
Destination Cell Steak77 Excel Discussion (Misc queries) 0 July 28th 06 06:24 PM
Format date in destination cell Susan Excel Worksheet Functions 1 April 6th 06 12:06 AM
How to create a link including all formatting from origin cell? PlatinSam Excel Worksheet Functions 2 January 17th 06 06:45 PM
Copying format to a new cell, w/o overwriting destination cell contents James C Excel Discussion (Misc queries) 1 October 18th 05 08:02 PM
How do I autofill combo boxes with their destination cell? Defoes Right Boot Excel Worksheet Functions 3 January 10th 05 12:49 PM


All times are GMT +1. The time now is 05:06 AM.

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"