+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    how to link a1 to b1 to auto fill one or the other if entering info in only one.

    Okay, I am pretty good with excel but this one is stumping me and I know it is an easy fix.

    I have b3(account #) c3 (account name)
    001100 Joe

    I want to be able to just type either the account number OR name and the other to autofill the next cell because there are times I only know the name or the number and I dont want to look up the the information. I am currently at cell 543 so i have a lot of information. I know I could just do crtl f and find the information, but I just know there is a way. currently i have this formula on a differnt sheet =CONCATENATE('sheet 1'!D496," ",'sheet 1'!C496) and then listing it in ABC order so i can flip to that screen.

    I was trying If then but it just wasnt working, i dont think i was doing the right cells. I will take the time to enter the information to get this going, but i dont have the time to be doing it every day. I am spending an hour a day on mail which should only take 20 minutes.

    Thank you.
    Last edited by VBA Noob; 01-26-2009 at 05:52 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    4,972

    Re: how to link a1 to b1 to auto fill one or the other if entering info in only one.

    Do you want to the next cell to fill in the acct # if you put in the name and visa versa, or do you want the next cell to input other information, e.g. from a VLOOKUP? I would use an combination of IF and MATCH to determine if your inputted value is in column B or C and then proceed from there.
    Code:
    =IF(ISNUMBER(MATCH(J3,Sheet1!$B$3:$B$500,0)), VLOOKUP Based on Column B, IF(ISNUMBER(MATCH(J3,Sheet1!$C$3:$C$500,0)),VLOOKUP Based on Col C,"Does not exist))
    Does that get you started in the right direction?
    ChemistB
    My 2¢

    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

  3. #3
    Registered User
    Join Date
    01-23-2009
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: how to link a1 to b1 to auto fill one or the other if entering info in only one.

    Wow that looks great, i will try that right now!

  4. #4
    Registered User
    Join Date
    01-23-2009
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: how to link a1 to b1 to auto fill one or the other if entering info in only one.

    I tried that, but it did not work. I see a J3 or something in that formula, do i need to change that stuff?

    The actual rows/columns i am using are: (will be longer by eod)
    Account numbers:C5 - C563
    Names:D5-D563

    Columns B-H are being used by other information.
    This is all on Sheet 1

    My other list is on Sheet 4, named Kelsey from A2- A543. It is not in ABC order, just all put there and there are duplicates of names. I just have them with name and mtr number.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    4,972

    Re: how to link a1 to b1 to auto fill one or the other if entering info in only one.

    Okay, where are you entering the Acct # or Name? Is Sheet4 A2:A542 where you put your concatinated values? What do you want returned and where?
    Example
    In Sheet 4 Column B, the user will enter either the acct or Name. In Sheet4 Col C, Excel returns the corresponding value for that Acct (or name) from Sheet1 column G.
    In Sheet4 Col D, Excel returns the corresponding value from Col G Sheet1, etc.
    An example workbook would help (in xls format).
    ChemistB
    My 2¢

    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0