+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP with inbeded IF forumla?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-09-2014
    Location
    Franklin, MA
    MS-Off Ver
    Exel 2010
    Posts
    1

    VLOOKUP with inbeded IF forumla?

    I need Column D2 to state the town Sammy is working in. I have =VLOOKUP(E2,B2:B15,1,False)

                 A            B         C          D               E
    1	                worker		 Town	
    2    Braintree     Tom 		        	       Sammy
    3	                Sammy			
    4	                Toby			
    5	                Alex			
    6				
    7				
    8				
    9				
    10   Westfield	 Fred			
    11	                 John			
    12	                 Kong			
    13	                 Chhin			
    14	                 Phal			
    15

    Any Help?
    Last edited by JBeaucaire; 09-09-2014 at 11:06 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VLOOKUP with inbeded IF forumla?

    From that table, what town is Sammy working in? Briantree?

    VLOOKUP works reading columns LEFT to right, so you would need to:

    1) Put the names in column A
    2) Put the city for each person in each row
    3) Expand the VLOOKUP range to include columns A:B...

    =VLOOKUP("Sammy", A:B, 2, 0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: VLOOKUP with inbeded IF forumla?

    I found your example more than a little confusing but came up with a solution that I think fits the situation. The cities have to be filled in in column A for each worker.

    Formula: copy to clipboard
    =IF(E2="","",INDEX($A$2:$A$14,MATCH(E2,$B$2:$B$14,0)))
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vlookup Sumif Forumla
    By MROMAR in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-27-2012, 02:58 PM
  2. Forumla Help - VLookup?
    By m_789 in forum Excel General
    Replies: 5
    Last Post: 10-19-2011, 07:00 AM
  3. Vlookup forumla not working
    By TaGY2K in forum Excel General
    Replies: 2
    Last Post: 11-20-2008, 04:22 PM
  4. Intelligent vlookup forumla
    By npanayotou in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2008, 08:22 AM
  5. [SOLVED] Can a picture be inbeded in an excel cell
    By SCARSON in forum Excel General
    Replies: 2
    Last Post: 12-20-2005, 08:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1