+ Reply to Thread
Results 1 to 9 of 9

Returning Numeric Results across a Single Row in Consecutive Cells

  1. #1
    Sam via OfficeKB.com
    Guest

    Returning Numeric Results across a Single Row in Consecutive Cells

    Hi All,

    How can I Return Numeric Results across a single Row in consecutive cells -
    no blank / empty cells?

    I am using the Formula below to Return the Results of Numeric Labels that DO
    NOT exist in the two Row arrays $D$6:$BZ$6, $D$16:$BZ$16:

    =IF(AND(D3<>$D$6:$BZ$6,D3<>$D$16:$BZ$16),D3,"") - Array entered.

    The Numeric Labels in the Row arrays are in sequential ascending order.

    When the Results are Returned I get blank cells in between the Results (for
    the Numeric Labels that EXist in the above two Row arrays - $D$6:$BZ$6, $D$16:
    $BZ$16):

    1 2 blank blank 5 blank blank blank 9 blank 11 etc.

    How can I Return the Results without blank cells in between? Filling each
    cell consecutively - like this:
    1 2 5 9 11

    Thanks
    Sam

    --
    Message posted via http://www.officekb.com

  2. #2
    Bob Phillips
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Use this array formula

    =IF(ISERROR(SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(D3
    :Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSPOS
    E(ROW($A1:$A20)))),"",
    INDEX(D3:Z3,1,SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(
    D3:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSP
    OSE(ROW($A1:$A20)))))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Sam via OfficeKB.com" <u4102@uwe> wrote in message
    news:63490f00ad995@uwe...
    > Hi All,
    >
    > How can I Return Numeric Results across a single Row in consecutive

    cells -
    > no blank / empty cells?
    >
    > I am using the Formula below to Return the Results of Numeric Labels that

    DO
    > NOT exist in the two Row arrays $D$6:$BZ$6, $D$16:$BZ$16:
    >
    > =IF(AND(D3<>$D$6:$BZ$6,D3<>$D$16:$BZ$16),D3,"") - Array entered.
    >
    > The Numeric Labels in the Row arrays are in sequential ascending order.
    >
    > When the Results are Returned I get blank cells in between the Results

    (for
    > the Numeric Labels that EXist in the above two Row arrays - $D$6:$BZ$6,

    $D$16:
    > $BZ$16):
    >
    > 1 2 blank blank 5 blank blank blank 9 blank 11 etc.
    >
    > How can I Return the Results without blank cells in between? Filling each
    > cell consecutively - like this:
    > 1 2 5 9 11
    >
    > Thanks
    > Sam
    >
    > --
    > Message posted via http://www.officekb.com




  3. #3
    Domenic
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Here's another way...

    Assuming that the results are to be returned in Row 25, starting at D25,
    leave C25 empty, then try the following formula which needs to be
    confirmed with CONTROL+SHIFT+ENTER...

    =INDEX($D3:$BZ3,MATCH(0,IF(COUNTIF($D6:$BZ6,$D3:$BZ3)=0,IF(COUNTIF($D16:$
    BZ16,$D3:$BZ3)=0,COUNTIF($C25:C25,$D3:$BZ3))),0))

    Note that Conditional Formatting can be used to hide #N/A error values.

    Hope this helps!

    In article <63490f00ad995@uwe>, "Sam via OfficeKB.com" <u4102@uwe>
    wrote:

    > Hi All,
    >
    > How can I Return Numeric Results across a single Row in consecutive cells -
    > no blank / empty cells?
    >
    > I am using the Formula below to Return the Results of Numeric Labels that DO
    > NOT exist in the two Row arrays $D$6:$BZ$6, $D$16:$BZ$16:
    >
    > =IF(AND(D3<>$D$6:$BZ$6,D3<>$D$16:$BZ$16),D3,"") - Array entered.
    >
    > The Numeric Labels in the Row arrays are in sequential ascending order.
    >
    > When the Results are Returned I get blank cells in between the Results (for
    > the Numeric Labels that EXist in the above two Row arrays - $D$6:$BZ$6, $D$16:
    > $BZ$16):
    >
    > 1 2 blank blank 5 blank blank blank 9 blank 11 etc.
    >
    > How can I Return the Results without blank cells in between? Filling each
    > cell consecutively - like this:
    > 1 2 5 9 11
    >
    > Thanks
    > Sam


  4. #4
    Sam via OfficeKB.com
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Hi Bob,

    Thank you very much for your time and assistance. The Formula looks awesome!

    I've array entered the Formula but it actually returns the opposite to what I
    need. It returns the Numeric Labels that are in Row array $D$6:$BZ$6, $D$16:
    $BZ$16.

    >I am using the Formula below to Return the Results of Numeric Labels that DO
    >NOT exist in the two Row arrays $D$6:$BZ$6, $D$16:$BZ$16:


    >=IF(AND(D3<>$D$6:$BZ$6,D3<>$D$16:$BZ$16),D3,"") - Array entered.


    If time permits, would appreciate a version of your Formula that provides the
    Numeric Labels NOT in Row array $D$6:$BZ$6, $D$16:$BZ$16.

    Cheers,
    Sam

    Bob Phillips wrote:
    >Use this array formula
    >
    >=IF(ISERROR(SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(D3
    >:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSPOS
    >E(ROW($A1:$A20)))),"",
    >INDEX(D3:Z3,1,SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(
    >D3:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSP
    >OSE(ROW($A1:$A20)))))
    >
    >> Hi All,
    >>

    >[quoted text clipped - 20 lines]
    >> Thanks
    >> Sam


    --
    Message posted via http://www.officekb.com

  5. #5
    Sam via OfficeKB.com
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Hi Domenic,

    Thank you for assistance. The Formula works Great!

    Cheers,
    Sam

    Domenic wrote:
    >Here's another way...
    >
    >Assuming that the results are to be returned in Row 25, starting at D25,
    >leave C25 empty, then try the following formula which needs to be
    >confirmed with CONTROL+SHIFT+ENTER...
    >
    >=INDEX($D3:$BZ3,MATCH(0,IF(COUNTIF($D6:$BZ6,$D3:$BZ3)=0,IF(COUNTIF($D16:$
    >BZ16,$D3:$BZ3)=0,COUNTIF($C25:C25,$D3:$BZ3))),0))
    >
    >Note that Conditional Formatting can be used to hide #N/A error values.
    >
    >Hope this helps!
    >
    >> Hi All,
    >>

    >[quoted text clipped - 20 lines]
    >> Thanks
    >> Sam


    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200607/1

  6. #6
    Bob Phillips
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Just adjust the range being returned, after the INDEX

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Sam via OfficeKB.com" <u4102@uwe> wrote in message
    news:634b691170eff@uwe...
    > Hi Bob,
    >
    > Thank you very much for your time and assistance. The Formula looks

    awesome!
    >
    > I've array entered the Formula but it actually returns the opposite to

    what I
    > need. It returns the Numeric Labels that are in Row array $D$6:$BZ$6,

    $D$16:
    > $BZ$16.
    >
    > >I am using the Formula below to Return the Results of Numeric Labels that

    DO
    > >NOT exist in the two Row arrays $D$6:$BZ$6, $D$16:$BZ$16:

    >
    > >=IF(AND(D3<>$D$6:$BZ$6,D3<>$D$16:$BZ$16),D3,"") - Array entered.

    >
    > If time permits, would appreciate a version of your Formula that provides

    the
    > Numeric Labels NOT in Row array $D$6:$BZ$6, $D$16:$BZ$16.
    >
    > Cheers,
    > Sam
    >
    > Bob Phillips wrote:
    > >Use this array formula
    > >

    >
    >=IF(ISERROR(SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(D

    3
    >
    >:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSPO

    S
    > >E(ROW($A1:$A20)))),"",

    >
    >INDEX(D3:Z3,1,SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH

    (
    >
    >D3:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANS

    P
    > >OSE(ROW($A1:$A20)))))
    > >
    > >> Hi All,
    > >>

    > >[quoted text clipped - 20 lines]
    > >> Thanks
    > >> Sam

    >
    > --
    > Message posted via http://www.officekb.com




  7. #7
    Sam via OfficeKB.com
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Hi Bob,

    Bob Phillips wrote:

    >Just adjust the range being returned, after the INDEX


    Not sure what to adjust the range to?

    Use this array formula
    =IF(ISERROR(SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(D3
    :Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSPOS
    E(ROW($A1:$A20)))),"",
    INDEX(D3:Z3,1,SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(
    D3:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSP
    OSE(ROW($A1:$A20)))))


    Cheers,
    Sam

    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200607/1

  8. #8
    Bob Phillips
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Sorry Sam,

    I completely misundersttod what you wanted.

    My formula could be adapted to work, but as you have a good solution from
    Domenic, it is hardly worth it.


    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Sam via OfficeKB.com" <u4102@uwe> wrote in message
    news:634bd42b74889@uwe...
    > Hi Bob,
    >
    > Bob Phillips wrote:
    >
    > >Just adjust the range being returned, after the INDEX

    >
    > Not sure what to adjust the range to?
    >
    > Use this array formula
    >

    =IF(ISERROR(SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(D3
    >

    :Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSPOS
    > E(ROW($A1:$A20)))),"",
    >

    INDEX(D3:Z3,1,SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(
    >

    D3:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSP
    > OSE(ROW($A1:$A20)))))
    >
    >
    > Cheers,
    > Sam
    >
    > --
    > Message posted via OfficeKB.com
    > http://www.officekb.com/Uwe/Forums.a...tions/200607/1




  9. #9
    Sam via OfficeKB.com
    Guest

    Re: Returning Numeric Results across a Single Row in Consecutive Cells

    Hi Bob,

    No problem.

    Cheers,
    Sam

    Bob Phillips wrote:
    >Sorry Sam,


    >I completely misundersttod what you wanted.


    >My formula could be adapted to work, but as you have a good solution from
    >Domenic, it is hardly worth it.
    >
    >> Hi Bob,
    >>

    >[quoted text clipped - 3 lines]
    >>
    >> Use this array formula

    >
    >=IF(ISERROR(SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(D3
    >
    >:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSPOS
    >> E(ROW($A1:$A20)))),"",

    >
    >INDEX(D3:Z3,1,SMALL(IF((ISNUMBER(MATCH(D3:Z3,$D$6:$Z$6,0)))+(ISNUMBER(MATCH(
    >
    >D3:Z3,$D$16:$Z$16,0))),COLUMN($D$3:$Z$3)-MIN(COLUMN($D$3:$Z$3))+1,""),TRANSP
    >> OSE(ROW($A1:$A20)))))
    >>
    >> Cheers,
    >> Sam


    --
    Message posted via http://www.officekb.com

+ 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