#1   Report Post  
BONNY
 
Posts: n/a
Default excel formula

6GN3839883
6G = NEVER CHANGES
N = MONTH 1-9 JAN - SEP, O - D OCT - DEC
3 = YEAR
39883 = IS UNIQUE TO THE PRODUCT
I WANT TO SET UP A FORMULA THAT WILL AUTOMATICALLY TELL ME IF THE PRODUCT IS
WITHIN WARRANTY.
IT CAN NOT BE ANY OLDER THAN 2 YEARS, I.E. 6GD901234 (6G DEC 1999) WOULD BE
TO OLD
SO IT HAS TO SHOW THAT IS WITHIN SAY 6G23????? AND 6G15?????.
I HAVE TRIED USING 'IF' BUT I CAN NOT SEEM TO GET THE FORMULA RIGHT.
IS THERE A FORMULA I CAN USE?

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

How would you display 1994, 2004 or 2009?
What I am meaning is how do you know (or how would excel know) 9 is 1999
and not 1909 or 2009? If there would be some system behind telling that
years greater than 4 is 1990 + the year and less than or equal is 2000 plus
the year, if so you can use something like

=IF(DATE(IF(--MID(A1,4,1)4,MID(A1,4,1)+1990,MID(A1,4,1)+2000)+2 ,VLOOKUP(MID(A1,3,1),{"1",1;"2",2;"3",3;"4",4;"5", 5;"6",6;"7",7;"8",8;"9",9;"O",10;"N",11;"D",12},2, 0),1)<DATE(YEAR(TODAY()),MONTH(TODAY()),1),"No Warranty","Warranty")

Regards,

Peo Sjoblom




Regards,

Peo Sjoblom

"BONNY" wrote:

6GN3839883
6G = NEVER CHANGES
N = MONTH 1-9 JAN - SEP, O - D OCT - DEC
3 = YEAR
39883 = IS UNIQUE TO THE PRODUCT
I WANT TO SET UP A FORMULA THAT WILL AUTOMATICALLY TELL ME IF THE PRODUCT IS
WITHIN WARRANTY.
IT CAN NOT BE ANY OLDER THAN 2 YEARS, I.E. 6GD901234 (6G DEC 1999) WOULD BE
TO OLD
SO IT HAS TO SHOW THAT IS WITHIN SAY 6G23????? AND 6G15?????.
I HAVE TRIED USING 'IF' BUT I CAN NOT SEEM TO GET THE FORMULA RIGHT.
IS THERE A FORMULA I CAN USE?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do figure excel formula out? rlrlatr35 Excel Discussion (Misc queries) 2 January 3rd 05 06:11 AM
How to I use ** without Excel thinking I want to type a formula? Buff Excel Discussion (Misc queries) 2 December 22nd 04 09:31 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
Preserve Excel formula entry MHoffmeier Excel Discussion (Misc queries) 5 December 2nd 04 06:34 PM


All times are GMT +1. The time now is 03:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"