+ Reply to Thread
Results 1 to 7 of 7

To get Correct Data Number after 3 stage validation

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Lightbulb To get Correct Data Number after 3 stage validation

    Hello Friends,

    I have a huge data which has 4 columns. Need formula for the 4th Column

    1st - Data Source (This is the deciding factor of the Correct Number. It has 2 values: SERVICE AND SALES.)

    2nd - Master Number (These are unique numbers)

    3rd - Slave Number (These are Duplicate Numbers)

    4th - Number after validation (The correct number to be populated using formula which will be decided based on Data Source column information)

    NEED HELP TO GET THE CORRECT NUMBER BASED OF DATA SOURCE COLUMN INFORMATION.

    In slave number column, there are duplicate numbers which means 2 records with number 111. And if in the Data source column 1st records is SALES & 2ND RECORD IS SERVICE. Only then I want the Master Number with maximum digit (A111) to be populated for both the records in the Number After Validation column.

    Duplicate records with both SALES or SERVICE IN Data Source column, need NO CHANGES.

    Can anyone help.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: To get Correct Data Number after 3 stage validation

    Attach a sample workbook.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: To get Correct Data Number after 3 stage validation

    could you send a sample?

  4. #4
    Registered User
    Join Date
    01-11-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: To get Correct Data Number after 3 stage validation

    Quote Originally Posted by rcm View Post
    could you send a sample?
    Please check the attached file
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: To get Correct Data Number after 3 stage validation

    try the macro included
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: To get Correct Data Number after 3 stage validation

    you could try in d2
    =IF(OR(AND(A1="service",A2="sales"),AND(A2="service",A3="sales")),"A"&C2,C2)

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: To get Correct Data Number after 3 stage validation

    Or in case "Sale" can come before "Service" in Column A, or they aren't together in the list.
    Formula: copy to clipboard
    =IF(AND(SUMPRODUCT(($A$2:$A$10="Service")*($C$2:$C$10=C2))>=1,SUMPRODUCT(($A$2:$A$10="Sales")*($C$2:$C$10=C2))>=1),"A"&C2,TEXT(C2,"#"))
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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