close

Hi All,

I have two Columns of data: Column quot;Equot; houses the Numeric Labels and Column
quot;Fquot; houses the Numeric Values. Column quot;Fquot; will have genuine duplicate values
that should be included in the Returned results. The criterion value will
vary.

Desired Result:
I would like to find / match all values (duplicates included) that are equal
to a specific criterion value - eg: 1 (one) in Column quot;Fquot; and then have all
their corresponding adjacent Numeric Labels returned from Column quot;Equot; to a
single cell, if possible. If not, then returned to individual cells on the
same Row.

Example Data:
Col E Col F
30 8
35 1
37 3
40 1
45 10
50 2
53 4
57 11
60 5
62 1

Expected Results:
Matching criterion value of 1 (one) Labels 35, 40 and 62 should be returned
to either a single cell or individual cells on the same Row.

Thanks
Sam

--
Message posted via OfficeKB.com
www.officekb.com/Uwe/Forums.a...tions/200512/1

I believe having the corresponding values returned to a single cell
would require either VBA or the use of the function MCONCAT which is
available in the free add-in Morefunc.xll.

Since I'm not familiar with VBA, and the add-in is not available for my
Mac version of Excel, I can only offer you a solution where the
corresponding values are returned to individual cells...

Assuming E1:F10 contains your data...

1) Let H1 contain your criterion, such as 1

2) Enter the following formula in I1 and copy across...

=IF(COLUMNS($I1:I1)lt;=COUNTIF($F$1:$F$10,$H1),INDEX ($E$1:$E$10,SMALL(IF($F
$1:$F$10=$H1,ROW($E$1:$E$10)-ROW($E$1) 1),COLUMNS($I1:I1))),quot;quot;)

....confirmed with CONTROL SHIFT ENTER.

Hope this helps!

In article lt;599cd29802c04@uwegt;, quot;Sam via OfficeKB.comquot; lt;u4102@uwegt;
wrote:

gt; Hi All,
gt;
gt; I have two Columns of data: Column quot;Equot; houses the Numeric Labels and Column
gt; quot;Fquot; houses the Numeric Values. Column quot;Fquot; will have genuine duplicate values
gt; that should be included in the Returned results. The criterion value will
gt; vary.
gt;
gt; Desired Result:
gt; I would like to find / match all values (duplicates included) that are equal
gt; to a specific criterion value - eg: 1 (one) in Column quot;Fquot; and then have all
gt; their corresponding adjacent Numeric Labels returned from Column quot;Equot; to a
gt; single cell, if possible. If not, then returned to individual cells on the
gt; same Row.
gt;
gt; Example Data:
gt; Col E Col F
gt; 30 8
gt; 35 1
gt; 37 3
gt; 40 1
gt; 45 10
gt; 50 2
gt; 53 4
gt; 57 11
gt; 60 5
gt; 62 1
gt;
gt; Expected Results:
gt; Matching criterion value of 1 (one) Labels 35, 40 and 62 should be returned
gt; to either a single cell or individual cells on the same Row.
gt;
gt; Thanks
gt; Sam

Hi Domenic,

Thank you for reply.

Using the Array Formula below, it only returns the first Numeric Label that
matches the criterion. The first matched Numeric Label is returned several
times across the Row.

gt;Assuming E1:F10 contains your data...

gt;1) Let H1 contain your criterion, such as 1

gt;2) Enter the following formula in I1 and copy across...

gt;=IF(COLUMNS($I1:I1)lt;=COUNTIF($F$1:$F$10,$H1),INDE X($E$1:$E$10,SMALL(IF($F
gt;$1:$F$10=$H1,ROW($E$1:$E$10)-ROW($E$1) 1),COLUMNS($I1:I1))),quot;quot;)

gt;...confirmed with CONTROL SHIFT ENTER.

I've checked to see if I made any typo's but cannot spot any (yet!).

Would the Worksheet Function TRANSPOSE help?

Any further assistance much appreciated.

Cheers
Sam

Domenic wrote:
gt;I believe having the corresponding values returned to a single cell
gt;would require either VBA or the use of the function MCONCAT which is
gt;available in the free add-in Morefunc.xll.
gt;
gt;Since I'm not familiar with VBA, and the add-in is not available for my
gt;Mac version of Excel, I can only offer you a solution where the
gt;corresponding values are returned to individual cells...
gt;
gt;Assuming E1:F10 contains your data...
gt;
gt;1) Let H1 contain your criterion, such as 1
gt;
gt;2) Enter the following formula in I1 and copy across...
gt;
gt;=IF(COLUMNS($I1:I1)lt;=COUNTIF($F$1:$F$10,$H1),INDE X($E$1:$E$10,SMALL(IF($F
gt;$1:$F$10=$H1,ROW($E$1:$E$10)-ROW($E$1) 1),COLUMNS($I1:I1))),quot;quot;)
gt;
gt;...confirmed with CONTROL SHIFT ENTER.
gt;
gt;Hope this helps!
gt;
gt;gt; Hi All,
gt;gt;
gt;[quoted text clipped - 29 lines]
gt;gt; Thanks
gt;gt; Sam

--
Message posted via OfficeKB.com
www.officekb.com/Uwe/Forums.a...tions/200512/1

Hi Domenic,

Please ignore my previous Post. The Formula works Great!

My error: I entered the Formula and then copied it across the various cells
and then confirmed with CONTROL SHIFT ENTER , when all the cells were still
selected.

I should have entered the Formula in one selected cell and then confirmed
with CONTROL SHIFT ENTER, copying the Formula across the relevant cells
quot;AFTERquot; the CONTROL SHIFT ENTER was performed in the first cell.

Thank you for all your help - very much appreciated.

Cheers,
Sam

Domenic wrote:
gt;I believe having the corresponding values returned to a single cell
gt;would require either VBA or the use of the function MCONCAT which is
gt;available in the free add-in Morefunc.xll.
gt;
gt;Since I'm not familiar with VBA, and the add-in is not available for my
gt;Mac version of Excel, I can only offer you a solution where the
gt;corresponding values are returned to individual cells...
gt;
gt;Assuming E1:F10 contains your data...
gt;
gt;1) Let H1 contain your criterion, such as 1
gt;
gt;2) Enter the following formula in I1 and copy across...
gt;
gt;=IF(COLUMNS($I1:I1)lt;=COUNTIF($F$1:$F$10,$H1),INDE X($E$1:$E$10,SMALL(IF($F
gt;$1:$F$10=$H1,ROW($E$1:$E$10)-ROW($E$1) 1),COLUMNS($I1:I1))),quot;quot;)
gt;
gt;...confirmed with CONTROL SHIFT ENTER.
gt;
gt;Hope this helps!
gt;
gt;gt; Hi All,
gt;gt;
gt;[quoted text clipped - 29 lines]
gt;gt; Thanks
gt;gt; Sam

--
Message posted via OfficeKB.com
www.officekb.com/Uwe/Forums.a...tions/200512/1

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()