+ Reply to Thread
Results 1 to 10 of 10

insert text in fields (possibly mulitple) if certain conditions met

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    Oxford, England
    MS-Off Ver
    2007
    Posts
    45

    insert text in fields (possibly mulitple) if certain conditions met

    Please help.

    I have attached a spreadsheet template that we use to track deliveries into our warehouse and the supplier's performance. The sheet is manually completed and records delivery issues; comments and scores suppliers accordingly. This is used by more than one department.

    We have agreed exceptions for certain suppliers - certain standards that they do not have to meet. I need an easy and automatic way of showing the agreed exceptions when the spreadsheet is completed.

    Supplier's names are on a drop down list, so ideally, when a supplier's name is selected, the list of delivery issues will adjust so the agreed exceptions for that particular supplier will be clear. Ideally, the magic trick will insert an N/A into the fields as applicable.

    However, I have no clue if this can even be done.

    We have approx 75 different supplier names (and this list can grow), and currently 14 approved exceptions -some suppliers have no agreed exceptions, so all fields could apply to them; others have one or more agreed exceptions. We are currently checking manually which is extremely time consuming. There has to be an easier way.

    I muddle my way through things like this, but this one has got me stumped. No idea how to even begin.

    If anyone can assist with this I would be very grateful.

    Many thanks in advance

    Jen
    Attached Files Attached Files
    Last edited by JeninQC; 04-04-2017 at 10:45 AM.

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: I have no clue how to do this :-/

    Hi Jen -

    The Forum Moderators don't like thread titles like the one you've posted "I Have No Clue How To Do This". They are trying to build a searchable database so other people with your same problem can query past results and hopefully find answers on their own. Your title creates a problem in the searchability (I'm not sure that's actually a word ;-) ) of the database.

    So, can you use the thread tools to revise your title to something like "Help with VLOOKUP"? I glanced through your attached spreadsheet and I think that's where your solution will be. Technically, I get in trouble if I help you with a bad thread title.

    Thanks,
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    11-22-2016
    Location
    Oxford, England
    MS-Off Ver
    2007
    Posts
    45

    Re: insert text in fields (possibly mulitple) if certain conditions met

    thanks for the assist - No idea how to start fixing this problem so made it a bit difficult to come up with a useful title - still not sure that I what I have put in, is helpful.

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: insert text in fields (possibly mulitple) if certain conditions met

    Hi -

    OK - I think that's a reasonable enough title. If I understand what you are trying to do, I think VLOOKUP is your solution. Just copy and paste this formula into cell X5:

    =VLOOKUP($D5,'AGREED EXCEPTIONS'!$A$3:$O$200,2,FALSE)

    This formula looks at the supplier name in cell D5 and checks it against your exceptions list in the range of A3 to O200 (I added extra rows in case you add more suppliers). A3 is considered Column 1 for VLOOKUP, so B3 is Column 2, which is the same category "No Separation" on Sheet 2. You then need to copy this formula across to your other cells you want to check (Z5, AB5, AD5, etc.) and increment the column number to return in the VLOOKUP formula. So, for example, if you copy the above fromula to Cell Z5 of Sheet 1, just edit the formula column number to return to 3. It will look like this:

    =VLOOKUP($D5,'AGREED EXCEPTIONS'!$A$3:$O$200,3,FALSE)

    You can see everything is the same except the column number is 3 instead of 2.

    Hope this helps!

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: insert text in fields (possibly mulitple) if certain conditions met

    One more thing -

    Once you get the cells edited all the way across the first line, you can just copy them straight down.

  6. #6
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: insert text in fields (possibly mulitple) if certain conditions met

    Sorry - third thing -

    I reread your requirements and you wanted "N/A" if no X was found. Just revise the formula like this:

    =IF(VLOOKUP($D5,'AGREED EXCEPTIONS'!$A$3:$O$200,2,FALSE)="X","X","N/A")

    All the other instructions still apply.

    Sorry for the oversight.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,162

    Re: insert text in fields (possibly mulitple) if certain conditions met

    The Forum Moderators don't like thread titles like the one you've posted "I Have No Clue How To Do This".
    Just for clarification and for the avoidance of misconception: it is not the forum moderators who decide upon the rules here. We are here only to uphold them. There is a perfectly reasonable explanation for this particular rule, to which we ALL agreed upon signing up here.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    11-22-2016
    Location
    Oxford, England
    MS-Off Ver
    2007
    Posts
    45

    Re: insert text in fields (possibly mulitple) if certain conditions met

    Hello,

    This looks like it works (THANK YOU).

    Just one quick question though. Is it possible to amend the VLOOKUP formula so if it is not N/A, it has no text or numbers in the field?

    Thanks

    J

  9. #9
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: insert text in fields (possibly mulitple) if certain conditions met

    Hi Jen -

    I'm not sure I understand. Can you give me an example? Thanks.

  10. #10
    Registered User
    Join Date
    11-22-2016
    Location
    Oxford, England
    MS-Off Ver
    2007
    Posts
    45

    Re: insert text in fields (possibly mulitple) if certain conditions met

    Hello,

    Actually, don't worry about that one - I can work around it with some formatting.

    Thanks again for all of your help with this.

    J

+ 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. ERROR 13, no clue why
    By pj6620 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2014, 01:43 PM
  2. No Clue
    By miahson in forum Excel General
    Replies: 2
    Last Post: 06-02-2009, 03:58 PM
  3. Haven't got a clue!!!
    By DarrenG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2006, 07:59 AM
  4. [SOLVED] Have not a clue how to do this
    By DTTODGG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2006, 04:45 PM
  5. Not a clue of which function to use!
    By y_not in forum Excel General
    Replies: 1
    Last Post: 04-11-2006, 02:25 PM
  6. No Clue...
    By tahir in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2006, 08:45 AM
  7. I have not got a clue
    By emailreynolds in forum Excel General
    Replies: 1
    Last Post: 08-25-2005, 02:05 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