+ Reply to Thread
Results 1 to 7 of 7

Plot if blank non blank and given text matches

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    671

    Plot if blank non blank and given text matches

    Hello Friends

    Please find the attached file (Plot if blank non blank and given text matches.xlsx).

    The Column B should be blank and Columns A, F and I should be non blank and Column D shoud matches with the given text in the Cells K3:K8.

    If the blank non blank and given text matches then need to plot in the light yellow cells.

    thanks in advance.
    Sekar

  2. #2
    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,997

    Re: Plot if blank non blank and given text matches

    Try

    M3=IF(AND(INDEX($B$2:$B$15,MATCH($L3,$A$2:$A$15,0))="",INDEX($A$2:$A$15,MATCH($L3,$A$2:$A$15,0))<>"",INDEX($F$2:$F$15,MATCH($L3,$A$2:$A$15,0))<>"",INDEX($H$2:$H$15,MATCH($L3,$A$2:$A$15,0))<>"",MATCH($J$3:$J$8,$D$2:$D$15,0)),INDEX($A$2:$H$15,MATCH($L3,$A$2:$A$15,0),(COLUMNS($Q$1:Q1)-1)*2+4),5) and drag towards the cell.
    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)

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Plot if blank non blank and given text matches

    m3
    =IFERROR(INDEX(A:A,SMALL(INDEX(((COUNTIF($K$3:$K$8,$D$2:$D$15)=0)+($A$2:$A$15="")+($F$2:$F$15="")+($B$2:$B$15<>""))*10^10+ROW($A$2:$A$15),0),ROWS(L$3:L3))),"")
    n3
    =IFERROR(INDEX(D:D,SMALL(INDEX(((COUNTIF($K$3:$K$8,$D$2:$D$15)=0)+($A$2:$A$15="")+($F$2:$F$15="")+($B$2:$B$15<>""))*10^10+ROW($A$2:$A$15),0),ROWS(M$3:M3))),"")
    o3
    =IFERROR(INDEX(F:F,SMALL(INDEX(((COUNTIF($K$3:$K$8,$D$2:$D$15)=0)+($A$2:$A$15="")+($F$2:$F$15="")+($B$2:$B$15<>""))*10^10+ROW($A$2:$A$15),0),ROWS(N$3:N3))),"")
    p3
    =IFERROR(INDEX(I:I,SMALL(INDEX(((COUNTIF($K$3:$K$8,$D$2:$D$15)=0)+($A$2:$A$15="")+($F$2:$F$15="")+($B$2:$B$15<>""))*10^10+ROW($A$2:$A$15),0),ROWS(O$3:O3))),"")
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    671

    Re: Plot if blank non blank and given text matches

    Hello Ankur

    Thanks for your formula.

    But it shows #N/A, Also it takes the reference from the unreleated blank cells i.e., Q1, L3 and J:J8, can you upload a file with solution formula.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,838

    Re: Plot if blank non blank and given text matches

    Try

    =IFERROR(INDEX($A$2:$A$15,SMALL(IF((MATCH($D$2:D$15,$K$3:$K$8,0))*($B$2:$B$15="")*($F$2:$F$15<>"")*($I$2:$I$15<>""),ROW($A$2:$A$15)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    Enter with ctrl+Shift+Enter

    Change highlighted range to required columns (D , F, I)

  6. #6
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    671

    Re: Plot if blank non blank and given text matches

    Hello Siva and John

    Thanks to both of you

    Your formulas working well

    thanks again

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,838

    Re: Plot if blank non blank and given text matches

    Thank you for the feedback and rep: much appreciated.

+ 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. Add row with formatting if text in cell OR add blank row filled with blue if blank
    By sierradk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2014, 04:15 AM
  2. [SOLVED] help on a simple if text says this input that, if cell is blank leave it blank
    By Rec1ne in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2013, 10:43 AM
  3. Don't plot blank cells
    By marshymell0 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-04-2013, 02:40 AM
  4. [SOLVED] Simple pull exact text from cell, if blank it pulls up a 0. How to leave it as blank?
    By sharpmel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2012, 02:20 PM
  5. [SOLVED] If statement that copies text from a separate worksheet, or if blank, leaves cell blank.
    By barleycorn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2012, 12:30 PM
  6. Replies: 4
    Last Post: 07-18-2012, 02:34 PM
  7. Not Plot Blank Cells
    By Heathersu in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2008, 10:57 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