+ Reply to Thread
Results 1 to 5 of 5

What command do I use?

  1. #1
    Registered User
    Join Date
    03-13-2015
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    3

    What command do I use?

    Hi, I have been really taxed in my knowledge of Excel lately and could use some help. If someone could tell my what command I would use for the following scenario so I could research it I would be greatly appreciative. I don't think I am searching using the right terms in Google.

    I need date values in a column to be decided upon the value in another column. It would be like this, If column A is a word such as "Production" column B would give a specific date such as 3/22/2015. If it is a word such as "Test" it would give another date such as 4/4/2015. Column A would have about 10 unique values and so would column B.

    Could someone tell me the basic command please? I have Excel 2013.

    Thanks

  2. #2
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: What command do I use?

    ok i think what you are looking for can be done best with a Vlookup you just need a chart with the specific words on the left we will call it column A and the dates that match on the right column B. column c will be where the person chooses the words like "production" then in your cell you would use this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I would suggest limiting the words the user can input by using a dropdown list and forcing them to only use the words you want.

  3. #3
    Registered User
    Join Date
    03-13-2015
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    3

    Re: What command do I use?

    Thanks for the quick response and the help!

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: What command do I use?

    So you want a formula for column B based on the value in column A correct? And there are 10 possible dates (or so) based on values in A? Would you be able to make a table on another sheet (which could be hidden if you like)?
    If so you can make that table the possible values for A and their corresponding date in the next column. Then use vlookup in your formula for col. B.

    EG: Sheet2 2 is hidden and has "Production" in A1, "Test" in A2. B1 has "3/22/2015" and B2 has "4/4/2015"
    Sheet 1 has Production in A1, and in B1 this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That would return "3/22/2015" in B1 of your main sheet.

    the iferror part will just avoid "N/A" when match not made.
    Last edited by Arkadi; 03-13-2015 at 12:43 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  5. #5
    Registered User
    Join Date
    03-13-2015
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    3

    Re: What command do I use?

    Vlookup did it...thanks

+ 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. Replies: 1
    Last Post: 05-07-2014, 07:05 AM
  2. Master Command Button to call on other Command Buttons located in other Workbooks
    By MrNickRegan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2013, 07:57 PM
  3. [SOLVED] Changing ODBC command texts and refreshing via command button
    By milty456 in forum Excel General
    Replies: 2
    Last Post: 10-09-2012, 12:06 PM
  4. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  5. Nest SUM command with a command to make result cell blank
    By dwest185 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2011, 08:10 PM

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.6.0 RC 1