+ Reply to Thread
Results 1 to 4 of 4

Is there a clean way to assign a LARGE number of different texts a (date) value?

  1. #1
    Registered User
    Join Date
    06-05-2018
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Microsoft Excel 2016 MSO (16.0.8730.2046) 32-bit
    Posts
    2

    Is there a clean way to assign a LARGE number of different texts a (date) value?

    I've seen the posts about assigning a numerical value to text. But most of them involve putting the entire list of options in the formula
    e.g.
    "=if(A1="Freshman";1;if(A1="Sophomore";2;if(A1="Junior";3;if(A1="Senior";4;""))))"

    But I'm looking at having a great deal many text options and I would like a formula to look up the value for that text for me. I would also like the value to be in date form.
    If this helps. The data is to keep track of end dates for schools in my state of Hawaii. So I would like it to read something like this in two separate columns:

    School End Date
    Kaiser High 5/31/18
    McKinley High 5/31/18
    Pauoa Elementary 5/18/18

    Naturally I'll have a LOT of different schools to input. But I would only like to assign a date value to that school on one sheet and have it auto populate various other formulas including that text.

    TL;DR: I want a formula that doesn't include EVERY single text to value in it. I would like a formula that essentially says "refer to X". X being a table with all the various text to values.

    I am pretty inept at Excel so I apologize if my request comes off silly and impossible. I am just trying to streamline our processes in my office and this would lift a huge weight off of my shoulders.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Is there a clean way to assign a LARGE number of different texts a (date) value?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Is there a clean way to assign a LARGE number of different texts a (date) value?

    I would suggest using Vlookup and a table listing the schools and dates.

    To understand Vlookup, click on this link.

    https://www.techonthenet.com/excel/formulas/vlookup.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    06-05-2018
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Microsoft Excel 2016 MSO (16.0.8730.2046) 32-bit
    Posts
    2

    Re: Is there a clean way to assign a LARGE number of different texts a (date) value?

    Awesome!!! thank you guys both so much. I was able to figure it out with Vlookup. This is gonna make my life far easier.

+ 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: 6
    Last Post: 09-24-2017, 10:07 AM
  2. [SOLVED] Assign number to each date and venue variable
    By maym in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2017, 08:55 PM
  3. macro formula to clean data in large file
    By badams1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2014, 11:35 PM
  4. Large Number Date Format Overflow Error
    By goss in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-12-2013, 05:55 PM
  5. Replies: 3
    Last Post: 06-27-2012, 06:15 PM
  6. [SOLVED] Remove Large List of Texts
    By lllusion in forum Excel General
    Replies: 8
    Last Post: 04-15-2012, 07:44 AM
  7. ##### when entering large texts into a cell.
    By melocotones_pmi in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-15-2008, 07:38 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