+ Reply to Thread
Results 1 to 8 of 8

To get Test Result based on entries in column cells. Sample excel attached.

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    53

    To get Test Result based on entries in column cells. Sample excel attached.

    Hello,
    I have text data in column. Based on data in column, I want results from the same column.
    Sample excel sheet with problem statement and required result is attached.
    Looking forward to get required result using excel function.

    Thanks in Advance.!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Please explain in more detail how you arrive at your expected outcome.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Based on the "X" factor. Wherever "X" is appearing, Previous non "X" text should come in result.

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Please try

    G5
    =IF(RIGHT(C5,1)<>"x","",INDEX(C$5:C5,AGGREGATE(14,6,--(RIGHT(C$5:C5,1)<>"x")*ROW(C$5:C5),1)-ROW($C$4)))

    Regards.

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,062

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Try this G5=IF(RIGHT(C5,1)="x",IF(G4="",C4,G4),""), copy down.

  6. #6
    Registered User
    Join Date
    03-12-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Thanks a lot.!

    Both the solutions worked for me and got desired result.!

  7. #7
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Quote Originally Posted by josephteh View Post
    Try this G5=IF(RIGHT(C5,1)="x",IF(G4="",C4,G4),""), copy down.
    Simple and better than mine.

    Regards.

  8. #8
    Registered User
    Join Date
    03-12-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: To get Test Result based on entries in column cells. Sample excel attached.

    Yes it is. But your function works fantastic without even being dependent on "G" column.

    I have further modified your function to make it work even if the position of "x" is changed from extreme right to any other place in cell.

    Modified function :
    =IF(ISNUMBER(SEARCH("x",C7)),INDEX($C$7:C7,AGGREGATE(14,6,--(NOT(ISNUMBER(SEARCH("x",$C$7:C7))))*ROW($C$7:C7),1)-ROW($C$6)),"")

+ 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] Date not recognised in Date formatted column (sample file attached) Excel 2007
    By marco polo 2021 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2021, 06:02 AM
  2. revenue sheet based on the daily calculation ( attached sample )
    By Islamhmelkady in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2019, 06:07 AM
  3. [SOLVED] Lookup and return Heading of column based on criteria (sample data attached)
    By kai. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-01-2018, 04:46 AM
  4. Replies: 1
    Last Post: 04-30-2018, 12:23 PM
  5. Lookup Value with merged cells (Sample Attached)
    By psingh2688 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2015, 08:58 PM
  6. [SOLVED] Sum up to the nth Column Sample attached
    By dj_mix in forum Excel General
    Replies: 4
    Last Post: 09-22-2014, 02:49 PM
  7. Replies: 0
    Last Post: 09-12-2013, 06:24 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