+ Reply to Thread
Results 1 to 6 of 6

Vlookup with empty cell

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    Tampa, FL
    MS-Off Ver
    excel 2007
    Posts
    3

    Vlookup with empty cell

    Mem# Pr First PR Last Sec First Sec Last Address 1 Add2 City State Zip Phone
    123456 b h j h 2530 first st My Town TN 37771 xxx-xxx-xxxx
    789123 d m k m 111 Main St apt 111 abc Fl 32536 xxx-xxx-xxxx
    257846 j m v m 9th St. N.W. my town TN 37771 xxx-xxx-xxxx

    =VLOOKUP(G3,reg2010!$H$2:$AY$156,2,FALSE) that is what i have in the city field but most do not have a add2 field then if blank pulls the city, state and zip for the same with all the blank add2 lines

  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 empty cell

    Mem#	Pr First     PR Last	Sec First   Sec Last	Address 1	Add2	City	State	Zip	Phone
    123456	  b		h	  j		h 	2530 first st	 	My Town	TN	37771	xxx-xxx-xxxx
    789123	  d		m 	  k		m 	111  Main St	apt 111	abc	Fl	32536	xxx-xxx-xxxx
    257846	  j		m 	  v		m 	9th St. N.W.	 	my town	TN	37771	xxx-xxx-xxxx
    Your question is not really clear. Can you post a sample workbook showing examples of your desire results both with Add2 and without? Let us see where/how you're applying this formula and experiencing an issue.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.
    Last edited by JBeaucaire; 10-09-2009 at 12:54 PM.
    _________________
    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
    Registered User
    Join Date
    10-09-2009
    Location
    Tampa, FL
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: Vlookup with empty cell

    Attached is ss with info etc

    Thanks
    Attached Files Attached Files

  4. #4
    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 empty cell

    First, your VLOOKUP() formula is incorrect. IN cell B2, the formula needs to read:

    =VLOOKUP($A2,reg2010!$B$2:$L$30,2,FALSE)

    Notice the $ signs added? These serve to "lock" the references in place so they are correct as referenced in each cell. You're current use has incorrect range values in every cell except B2. Need to fix that.

    Second, what's the problem? I asked you to show desired results and I don't see anything in the file you've noted as a problem. What's the issue?

  5. #5
    Registered User
    Join Date
    10-09-2009
    Location
    Tampa, FL
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: Vlookup with empty cell

    What I am attempting to do if the member nbr in sheet 2 to pull name, address, etc up to the phone from sheet 1 over to sheet 2 - that tells me they are registered and can then send information from that - eventually will be over 2000 registered in sheet 1 and sheet 2 are volunteers and need to verify they are registered

  6. #6
    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 empty cell

    It appears your sheet is already setup to do that. Your problem is not demonstrated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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