+ Reply to Thread
Results 1 to 5 of 5

Convert Months, Quarters, Years to Months

  1. #1
    Banned User!
    Join Date
    12-17-2020
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    229

    Convert Months, Quarters, Years to Months

    I have a mix of shelf life items that some are in months, some in years, some in quarters and some in quarters plus 1 and some unlimited.

    Can these all be converted to another column in months.

    Please see column E that I want the conversions to be in column F.

    Thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Convert Months, Quarters, Years to Months

    i have used a nested IF
    =IF(E5="","",IF(E5="Unlimited","Unlimited",IF(ISERROR(SEARCH("*Month*",E5,1)),IF(ISERROR(SEARCH("*Year*",E5,1)),IF(ISERROR(SEARCH("*QTR*",E5,1)),"X",LEFT(E5,2)*3),LEFT(E5,2)*12&" months"),LEFT(E5,2)*1&" months")))

    BUT not done the Quarter +1 yet

    do you have all possible combinations in your example ?
    AND
    5/6 years
    what should that do

    Before spending more time on this woul dbe good to have all possible combinations as that may change the search/nest
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Banned User!
    Join Date
    12-17-2020
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    229

    Re: Convert Months, Quarters, Years to Months

    Excellent thanks so much!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Convert Months, Quarters, Years to Months

    Based on your example
    In F5 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    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)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Convert Months, Quarters, Years to Months

    Please try at E6

    =IFERROR(IF(LEFT(E6,2)="Un",E6,LOOKUP(9,SEARCH({"m","q","y"},E6),{1,3,12})*LEFT(E6,2)-IFERROR(-RIGHT(E6),0)),"")
    Attached Files Attached Files

+ 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: 15
    Last Post: 07-22-2019, 06:56 AM
  2. Months to quarters to years
    By miumamou in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2019, 09:03 AM
  3. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  4. [SOLVED] IF formula To Convert Months To Quarters
    By Craig K. in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-24-2013, 09:40 AM
  5. Replies: 0
    Last Post: 11-28-2007, 06:57 AM
  6. Convert months to months and years
    By teeb in forum Excel General
    Replies: 4
    Last Post: 01-22-2007, 12:46 PM
  7. [SOLVED] Convert Years to Years/Months/Days
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 01-04-2006, 11:00 AM

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