+ Reply to Thread
Results 1 to 6 of 6

Automatically fill in value if cell contains certain text

  1. #1
    Registered User
    Join Date
    09-22-2017
    Location
    Genk, Belgium
    MS-Off Ver
    2013
    Posts
    3

    Automatically fill in value if cell contains certain text

    Okay so I have a list of items and values that go along with them. What I want is for excel to automatically fill in the value in cell B when I enter an item in cell A.

    I currently have a very long IF formula which can go on for hundreds of items and I'm looking for a way to shorten this.

    The formula I currently have is:
    =if(A1=Text(Sheet1!A1;)Sheet1!B1;If(A1=Text(Sheet1!A2;)Sheet1!B2;...

    The list contains over 100 items, so if I were to continue like this, the formula would become incredibly long and take a while to complete. Is there any way I can minimise this so it still has the same outcome?

    I hope this makes sense. Thanks in advance!

    Sylvio

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Automatically fill in value if cell contains certain text

    Not much sense.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).


    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-22-2017
    Location
    Genk, Belgium
    MS-Off Ver
    2013
    Posts
    3

    Re: Automatically fill in value if cell contains certain text

    I hope this is what you needed?

    Thanks for the swift reply nonetheless.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Automatically fill in value if cell contains certain text

    MUCH easier to see!!!

    =VLOOKUP(A1,Itemlist!$A$1:$B$10,2,FALSE)

    Being in Belgium, you'll need ; not ,
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-22-2017
    Location
    Genk, Belgium
    MS-Off Ver
    2013
    Posts
    3

    Re: Automatically fill in value if cell contains certain text

    Okay great! Thanks a lot!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Automatically fill in value if cell contains certain text

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Automatically fill a cell based on text
    By wlbamc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2016, 08:07 AM
  2. [SOLVED] fill out one cell, all others fill out automatically
    By hatsunetsu in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 01-10-2015, 02:07 PM
  3. Formula to Automatically Fill Blank With Next fill cell's data?
    By VMoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 05:11 PM
  4. Unable to create VBA coding to automatically generate averaged fill colour of a text box
    By zero_eclipse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2012, 07:45 AM
  5. Write macro to fill body of the text automatically
    By Kotler in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2012, 12:17 AM
  6. Automatically fill sub: and body text.
    By ali84pk in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2010, 07:51 AM
  7. Automatically apply a fill when entering text
    By Janet in forum Excel General
    Replies: 4
    Last Post: 02-17-2006, 06:35 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