+ Reply to Thread
Results 1 to 4 of 4

want find out the number if it satisfy certain conditions

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    11

    want find out the number if it satisfy certain conditions

    Sir,

    i need a formula that it should say that a 6 digit number is fancy or not after checking certain conditions for fancy number.
    below are the combinations to check the 6 digit to become fancy number.

    2xxxxx
    2xyxyx
    2x2x2x
    2xy2xy
    2xxxyy
    2xxy(y+1)(y+2)
    2xx000
    2xxyyy
    2xyzxy
    2xy2(xy+1)
    2xxx00
    2xxxx0

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: want find out the number if it satisfy certain conditions

    Starting character 2 is the Constant Value or the 2 refers to x?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: want find out the number if it satisfy certain conditions

    it is constant value..

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: want find out the number if it satisfy certain conditions

    10th condition considered as 2xy2x(y+1)

    In A1 Cell

    Your Number

    In B1 Cell

    =IF(AND(LEFT(A1)="2",IF(LEN(SUBSTITUTE(A1,MID(A1,2,1),""))=1,1,IF(AND(AND(MID(A1,5,1)=MID(A1,3,1)),AND(MID(A1,4,1)=MID(A1,2,1),MID(A1,6,1)=MID(A1,2,1))),1,IF(AND(AND(MID(A1,5,1)="2",MID(A1,3,1)="2"),AND(MID(A1,4,1)=MID(A1,2,1),MID(A1,6,1)=MID(A1,2,1))),1,IF(AND(MID(A1,2,1)=MID(A1,5,1),MID(A1,3,1)=MID(A1,6,1),MID(A1,4,1)="2"),1,IF(AND(AND(MID(A1,3,1)=MID(A1,2,1),MID(A1,4,1)=MID(A1,2,1)),MID(A1,6,1)=MID(A1,5,1)),1,IF(AND(MID(A1,3,1)=MID(A1,2,1),AND(IFERROR(VALUE(MID(A1,5,1))=(MID(A1,4,1)+1),0),IFERROR(VALUE(MID(A1,6,1))=(MID(A1,4,1)+2),0))),1,IF(AND(MID(A1,3,1)=MID(A1,2,1),MID(A1,4,3)="000"),1,IF(AND(MID(A1,3,1)=MID(A1,2,1),AND(MID(A1,5,1)=MID(A1,4,1),MID(A1,6,1)=MID(A1,4,1))),1,IF(AND(MID(A1,5,1)=MID(A1,2,1),AND(MID(A1,4,1)<>2,MID(A1,4,1)<>MID(A1,2,1),MID(A1,4,1)<>MID(A1,3,1)),MID(A1,6,1)=MID(A1,3,1)),1,IF(AND(MID(A1,5,1)=MID(A1,2,1),IFERROR((MID(A1,3,1)+1)=VALUE(MID(A1,6,1)),0),MID(A1,4,1)="2"),1,IF(AND(AND(MID(A1,3,1)=MID(A1,2,1),MID(A1,4,1)=MID(A1,2,1)),MID(A1,5,2)="00"),1,IF(AND(AND(MID(A1,3,1)=MID(A1,2,1),MID(A1,4,1)=MID(A1,2,1),MID(A1,5,1)=MID(A1,2,1)),MID(A1,6,1)="0"),1,0))))))))))))),"Fancy No","Normal No")

    Drag it down...

+ 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. [SOLVED] Formula to get the count of items that satisfy two conditions
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-23-2013, 04:32 PM
  2. Find some numbers that satisfy a given condition
    By Atoli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2012, 01:58 AM
  3. [SOLVED] Calculate difference if satisfy multiple conditions
    By hparnian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2012, 02:03 PM
  4. Trying to find a minimum value to satisfy IF statement
    By hanhj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2011, 07:58 PM
  5. How do I satisfy 3 of 4 conditions and get a true/false result?
    By Baron J79 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-15-2008, 03:21 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