+ Reply to Thread
Results 1 to 10 of 10

Need No Blanks List based on two conditions

  1. #1
    Chaturanga
    Guest

    Need No Blanks List based on two conditions

    Hello,


    I'm looking for a worksheet formula that will produce a list of no
    blank values in a third column. First column contains the text values
    (30 rows) and they already listed with no blanks. The second column has
    boolean TRUE or FALSE values corresponding with the values in the first
    column. I'm looking for a formula that will list all first column
    values with corresponding second column values that are FALSE in the
    third column with no blanks.

    Thanks


  2. #2
    Bob Phillips
    Guest

    Re: Need No Blanks List based on two conditions

    Select a block of cells in another column, best to be same size as the data,
    and enter this formula in the formula bar

    =IF(ISERROR(SMALL(IF(NOT($B$1:$B$20),ROW($A1:$A20),""),ROW($A1:$A20))),"",IN
    DEX($A$1:$A$20,SMALL(IF(NOT($B1:$B20),ROW($A1:$A20),""),ROW($A1:$A20))))

    as an array formula, so commit with Ctrl-Shift-Enter.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Chaturanga" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    >
    > I'm looking for a worksheet formula that will produce a list of no
    > blank values in a third column. First column contains the text values
    > (30 rows) and they already listed with no blanks. The second column has
    > boolean TRUE or FALSE values corresponding with the values in the first
    > column. I'm looking for a formula that will list all first column
    > values with corresponding second column values that are FALSE in the
    > third column with no blanks.
    >
    > Thanks
    >




  3. #3
    Chaturanga
    Guest

    Re: Need No Blanks List based on two conditions

    Bob, I couldn't get this to work. There was no error with the formula
    but there is no data revealed with it either. All blanks. Any
    suggestions?


  4. #4
    Chaturanga
    Guest

    Re: Need No Blanks List based on two conditions

    Sorry Bob,

    I created some data on a new sheet and your array worked just fine. The
    data from the first attempt is created from an array formula so that
    must create complications. I'll play with this for a while. Thanks
    again.


  5. #5
    Aladin Akyurek
    Guest

    Re: Need No Blanks List based on two conditions

    Let A2:A25 be your first column range with A2 housing a label.

    In B1 enter: 0

    In B2 enter: Idx [ which is just a label ]

    In B3 enter & copy down:

    =IF(A3<>"",LOOKUP(9.99999999999999E+307,$B$1:B2)+1,"")

    In C1 enter:

    =LOOKUP(9.99999999999999E+307,B1:B25)

    In C2 enter: No Blanks List

    In C3 enter & copy down:

    =IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")

    From C3 on, you'll have the desired list with no interspersed
    blank/empty cells.

    Chaturanga wrote:
    > Hello,
    >
    >
    > I'm looking for a worksheet formula that will produce a list of no
    > blank values in a third column. First column contains the text values
    > (30 rows) and they already listed with no blanks. The second column has
    > boolean TRUE or FALSE values corresponding with the values in the first
    > column. I'm looking for a formula that will list all first column
    > values with corresponding second column values that are FALSE in the
    > third column with no blanks.
    >
    > Thanks
    >


  6. #6
    Stefano Condotta
    Guest

    Re: Need No Blanks List based on two conditions

    Hello Aladin,

    I'm afraid your final formula produces a curcular reference error. $C$3
    cannot be in the formula. Column B works well. I'm trying to get it to work.
    Thanks.
    "Aladin Akyurek" <[email protected]> wrote in message
    news:[email protected]...
    > Let A2:A25 be your first column range with A2 housing a label.
    >
    > In B1 enter: 0
    >
    > In B2 enter: Idx [ which is just a label ]
    >
    > In B3 enter & copy down:
    >
    > =IF(A3<>"",LOOKUP(9.99999999999999E+307,$B$1:B2)+1,"")
    >
    > In C1 enter:
    >
    > =LOOKUP(9.99999999999999E+307,B1:B25)
    >
    > In C2 enter: No Blanks List
    >
    > In C3 enter & copy down:
    >
    > =IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >
    > From C3 on, you'll have the desired list with no interspersed blank/empty
    > cells.
    >
    > Chaturanga wrote:
    >> Hello,
    >>
    >>
    >> I'm looking for a worksheet formula that will produce a list of no
    >> blank values in a third column. First column contains the text values
    >> (30 rows) and they already listed with no blanks. The second column has
    >> boolean TRUE or FALSE values corresponding with the values in the first
    >> column. I'm looking for a formula that will list all first column
    >> values with corresponding second column values that are FALSE in the
    >> third column with no blanks.
    >>
    >> Thanks
    >>




  7. #7
    Aladin Akyurek
    Guest

    Re: Need No Blanks List based on two conditions

    Stefano,

    That should not happen. Would you post the formulas as you adjusted them
    to your data?

    Stefano Condotta wrote:
    > Hello Aladin,
    >
    > I'm afraid your final formula produces a curcular reference error. $C$3
    > cannot be in the formula. Column B works well. I'm trying to get it to work.
    > Thanks.
    > "Aladin Akyurek" <[email protected]> wrote in message
    > news:[email protected]...
    >
    >>Let A2:A25 be your first column range with A2 housing a label.
    >>
    >>In B1 enter: 0
    >>
    >>In B2 enter: Idx [ which is just a label ]
    >>
    >>In B3 enter & copy down:
    >>
    >>=IF(A3<>"",LOOKUP(9.99999999999999E+307,$B$1:B2)+1,"")
    >>
    >>In C1 enter:
    >>
    >>=LOOKUP(9.99999999999999E+307,B1:B25)
    >>
    >>In C2 enter: No Blanks List
    >>
    >>In C3 enter & copy down:
    >>
    >>=IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >>
    >>From C3 on, you'll have the desired list with no interspersed blank/empty
    >>cells.
    >>
    >>Chaturanga wrote:
    >>
    >>>Hello,
    >>>
    >>>
    >>>I'm looking for a worksheet formula that will produce a list of no
    >>>blank values in a third column. First column contains the text values
    >>>(30 rows) and they already listed with no blanks. The second column has
    >>>boolean TRUE or FALSE values corresponding with the values in the first
    >>>column. I'm looking for a formula that will list all first column
    >>>values with corresponding second column values that are FALSE in the
    >>>third column with no blanks.
    >>>
    >>>Thanks
    >>>

    >
    >
    >


  8. #8
    Stefano Condotta
    Guest

    Re: Need No Blanks List based on two conditions

    The formula:

    =IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")

    poduces a circular reference if entered in cell C3 (as I read your
    instructions). I did not adapt to my situation as I tested it out on a clean
    worksheet first.

    Regards,
    Stefano

    "Aladin Akyurek" <[email protected]> wrote in message
    news:[email protected]...
    > Stefano,
    >
    > That should not happen. Would you post the formulas as you adjusted them
    > to your data?
    >
    > Stefano Condotta wrote:
    >> Hello Aladin,
    >>
    >> I'm afraid your final formula produces a curcular reference error.
    >> $C$3 cannot be in the formula. Column B works well. I'm trying to get it
    >> to work. Thanks.
    >> "Aladin Akyurek" <[email protected]> wrote in message
    >> news:[email protected]...
    >>
    >>>Let A2:A25 be your first column range with A2 housing a label.
    >>>
    >>>In B1 enter: 0
    >>>
    >>>In B2 enter: Idx [ which is just a label ]
    >>>
    >>>In B3 enter & copy down:
    >>>
    >>>=IF(A3<>"",LOOKUP(9.99999999999999E+307,$B$1:B2)+1,"")
    >>>
    >>>In C1 enter:
    >>>
    >>>=LOOKUP(9.99999999999999E+307,B1:B25)
    >>>
    >>>In C2 enter: No Blanks List
    >>>
    >>>In C3 enter & copy down:
    >>>
    >>>=IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >>>
    >>>From C3 on, you'll have the desired list with no interspersed blank/empty
    >>>cells.
    >>>
    >>>Chaturanga wrote:
    >>>
    >>>>Hello,
    >>>>
    >>>>
    >>>>I'm looking for a worksheet formula that will produce a list of no
    >>>>blank values in a third column. First column contains the text values
    >>>>(30 rows) and they already listed with no blanks. The second column has
    >>>>boolean TRUE or FALSE values corresponding with the values in the first
    >>>>column. I'm looking for a formula that will list all first column
    >>>>values with corresponding second column values that are FALSE in the
    >>>>third column with no blanks.
    >>>>
    >>>>Thanks
    >>>>

    >>
    >>



  9. #9
    Aladin Akyurek
    Guest

    Re: Need No Blanks List based on two conditions

    I see what happened. The formula should be:

    =IF(ROW()-ROW($C$3)+1<=$C$1,LOOKUP(ROW()-ROW($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")

    Stefano Condotta wrote:
    > The formula:
    >
    > =IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >
    > poduces a circular reference if entered in cell C3 (as I read your
    > instructions). I did not adapt to my situation as I tested it out on a clean
    > worksheet first.
    >
    > Regards,
    > Stefano
    >
    > "Aladin Akyurek" <[email protected]> wrote in message
    > news:[email protected]...
    >
    >>Stefano,
    >>
    >>That should not happen. Would you post the formulas as you adjusted them
    >>to your data?
    >>
    >>Stefano Condotta wrote:
    >>
    >>>Hello Aladin,
    >>>
    >>> I'm afraid your final formula produces a curcular reference error.
    >>>$C$3 cannot be in the formula. Column B works well. I'm trying to get it
    >>>to work. Thanks.
    >>>"Aladin Akyurek" <[email protected]> wrote in message
    >>>news:[email protected]...
    >>>
    >>>
    >>>>Let A2:A25 be your first column range with A2 housing a label.
    >>>>
    >>>>In B1 enter: 0
    >>>>
    >>>>In B2 enter: Idx [ which is just a label ]
    >>>>
    >>>>In B3 enter & copy down:
    >>>>
    >>>>=IF(A3<>"",LOOKUP(9.99999999999999E+307,$B$1:B2)+1,"")
    >>>>
    >>>>In C1 enter:
    >>>>
    >>>>=LOOKUP(9.99999999999999E+307,B1:B25)
    >>>>
    >>>>In C2 enter: No Blanks List
    >>>>
    >>>>In C3 enter & copy down:
    >>>>
    >>>>=IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >>>>
    >>>
    >>>>From C3 on, you'll have the desired list with no interspersed blank/empty
    >>>
    >>>>cells.
    >>>>
    >>>>Chaturanga wrote:
    >>>>
    >>>>
    >>>>>Hello,
    >>>>>
    >>>>>
    >>>>>I'm looking for a worksheet formula that will produce a list of no
    >>>>>blank values in a third column. First column contains the text values
    >>>>>(30 rows) and they already listed with no blanks. The second column has
    >>>>>boolean TRUE or FALSE values corresponding with the values in the first
    >>>>>column. I'm looking for a formula that will list all first column
    >>>>>values with corresponding second column values that are FALSE in the
    >>>>>third column with no blanks.
    >>>>>
    >>>>>Thanks
    >>>>>
    >>>
    >>>

    >


    --

    [1] The SumProduct function should implicitly coerce the truth values to
    their Excel numeric equivalents.
    [2] The lookup functions should have an optional argument for the return
    value, defaulting to #N/A in its absence.

  10. #10
    Stefano Condotta
    Guest

    Re: Need No Blanks List based on two conditions

    Excellent! Thanks.

    "Aladin Akyurek" <[email protected]> wrote in message
    news:[email protected]...
    >I see what happened. The formula should be:
    >
    > =IF(ROW()-ROW($C$3)+1<=$C$1,LOOKUP(ROW()-ROW($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >
    > Stefano Condotta wrote:
    >> The formula:
    >>
    >> =IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >>
    >> poduces a circular reference if entered in cell C3 (as I read your
    >> instructions). I did not adapt to my situation as I tested it out on a
    >> clean worksheet first.
    >>
    >> Regards,
    >> Stefano
    >>
    >> "Aladin Akyurek" <[email protected]> wrote in message
    >> news:[email protected]...
    >>
    >>>Stefano,
    >>>
    >>>That should not happen. Would you post the formulas as you adjusted them
    >>>to your data?
    >>>
    >>>Stefano Condotta wrote:
    >>>
    >>>>Hello Aladin,
    >>>>
    >>>> I'm afraid your final formula produces a curcular reference error.
    >>>> $C$3 cannot be in the formula. Column B works well. I'm trying to get
    >>>> it to work. Thanks.
    >>>>"Aladin Akyurek" <[email protected]> wrote in message
    >>>>news:[email protected]...
    >>>>
    >>>>
    >>>>>Let A2:A25 be your first column range with A2 housing a label.
    >>>>>
    >>>>>In B1 enter: 0
    >>>>>
    >>>>>In B2 enter: Idx [ which is just a label ]
    >>>>>
    >>>>>In B3 enter & copy down:
    >>>>>
    >>>>>=IF(A3<>"",LOOKUP(9.99999999999999E+307,$B$1:B2)+1,"")
    >>>>>
    >>>>>In C1 enter:
    >>>>>
    >>>>>=LOOKUP(9.99999999999999E+307,B1:B25)
    >>>>>
    >>>>>In C2 enter: No Blanks List
    >>>>>
    >>>>>In C3 enter & copy down:
    >>>>>
    >>>>>=IF(ROW()-($C$3)+1<=$C$1,LOOKUP(ROW()-($C$3)+1,$B$2:$B$25,$A$2:$A$25),"")
    >>>>>
    >>>>
    >>>>>From C3 on, you'll have the desired list with no interspersed
    >>>>>blank/empty
    >>>>
    >>>>>cells.
    >>>>>
    >>>>>Chaturanga wrote:
    >>>>>
    >>>>>
    >>>>>>Hello,
    >>>>>>
    >>>>>>
    >>>>>>I'm looking for a worksheet formula that will produce a list of no
    >>>>>>blank values in a third column. First column contains the text values
    >>>>>>(30 rows) and they already listed with no blanks. The second column
    >>>>>>has
    >>>>>>boolean TRUE or FALSE values corresponding with the values in the
    >>>>>>first
    >>>>>>column. I'm looking for a formula that will list all first column
    >>>>>>values with corresponding second column values that are FALSE in the
    >>>>>>third column with no blanks.
    >>>>>>
    >>>>>>Thanks
    >>>>>>
    >>>>
    >>>>

    >>

    >
    > --
    >
    > [1] The SumProduct function should implicitly coerce the truth values to
    > their Excel numeric equivalents.
    > [2] The lookup functions should have an optional argument for the return
    > value, defaulting to #N/A in its absence.




+ 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