+ Reply to Thread
Results 1 to 9 of 9

Identify parent record using IF function to combine the scenarios

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Identify parent record using IF function to combine the scenarios

    Hi,

    I have set the formula using if function for separate senarios but just that I am trying to combine all the senarios, it didn't work.

    Attached is the document at "DataExplanation" worksheet, column F.

    Need to provide the success rate report. Can anyone assist?
    Attached Files Attached Files
    Last edited by suchetherrah; 12-09-2015 at 03:59 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Identify parent record using IF function to combine the scenarios

    Is it the rule that "parent" is alway first row after "Client Name" and "Child" next?

    Try in A6 then drag down:

    =IF(H6="","",IF(H5="Client Name","Parent",IF(A5="","","Child")))
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Identify parent record using IF function to combine the scenarios

    Hi,

    Actually, the data is identified separately of different combinations of backup senarios from Column H onwards. In Column A is just the result I need to have as a forumala. This raw data is combined with different senarios which has 30,000 over records.

    For a better understanding, I have attached another file. Is it a good idea to separate the scenarios in different files mannualy from the 30,000++ records. Really need your advise. Thank you.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Identify parent record using IF function to combine the scenarios

    Hi,

    Please find PFA with rectify your problem.

    Regards Imran.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Identify parent record using IF function to combine the scenarios

    This is not the result I need. The record with red ones are the parent Job. I just need to identify the parent job. I am just picking up the different scenarios and explained in the DataExplanation worksheet to inform that those are the parent job to be identified.

    I just need to combine all the senarios in one formula. The reason is the use will be receiving the raw data of all the senarios combined of 30,000++ records which will be sorted.

    Almost a month, I am finding a solution to this. Or let me know if there is a better idea.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Identify parent record using IF function to combine the scenarios

    Quote Originally Posted by suchetherrah View Post
    I just need to identify the parent job.
    Does #2 help to identify the parent job? In example, parent job is always underneath "Client name", isn't it?

  7. #7
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Identify parent record using IF function to combine the scenarios

    Once I receive the raw data, I need to sort it by Policy Name, Job Start Date, Client Name. I shall identify by Schedule Name and Job Type.

    The System will schedule the 1st Job which is the Parent. The 2nd jobs onwards are the Child backup which breaks into smaller jobs. (I don't need to know the Child jobs. It doesn't matter if the formula show as "False")

    All Jobs as Same Client Name and policy Name except for No. 5 (VM Backup - with DB) has different Client Name.

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Identify parent record using IF function to combine the scenarios

    Try
    F6=IF(OR(I6="",I6="Policy Name"),"",IF(I5="Policy Name","Parent","Child")) and drag down.

    Formula: copy to clipboard
    =IF(OR(I6="",I6="Policy Name"),"",IF(I5="Policy Name","Parent","Child"))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  9. #9
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Identify parent record using IF function to combine the scenarios

    I will receive a raw data of 30,000+++ with different secenarios with 1 heading only. I will sort by policy name and job Those different scenarios are picked and explained in the "DataExplanation" worksheet as a sample only which I need to identify the parent job only

    I have already built using the if function where it differentiates by Schedule Name and Job Type. I just need to combine all the if functions into one formula to differentiate all scenarios when I extract all the 30,000 records.

    I have reattached the file in the first thread.

+ 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. Identify and extract parent record from the raw data
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-08-2015, 09:01 PM
  2. Replies: 3
    Last Post: 12-08-2015, 11:36 AM
  3. Replies: 19
    Last Post: 01-29-2015, 05:33 PM
  4. [SOLVED] How can I identify if a record has two different records?
    By jgomez in forum Access Tables & Databases
    Replies: 5
    Last Post: 01-27-2014, 02:43 PM
  5. identify first date a record appears
    By mcarrington in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2005, 05:10 PM
  6. Identify missing record numbers
    By Earl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2005, 11:10 AM
  7. [SOLVED] Identify missing record numbers
    By kabobot in forum Excel General
    Replies: 4
    Last Post: 01-05-2005, 02:06 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