#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Match two row numric

hello,
is there anyway formula or macro for solving follow problam ? what i want just
B_col dat equally A-col like as under.
A_col B_col --- A_col B_col
1 1 1 1
2 2 2 2
3 4 3
4 6 4 4
5 5
6 6 6
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Match two row numric

Say you enter this formula in C1 and copy down as needed:

=IF(ISNA(MATCH(A1,$B$1:$B$100,0)),"",INDEX($B$1:$B $100,
MATCH(A1,$B$1:$B$100,0)))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Tufail" wrote in message
...
hello,
is there anyway formula or macro for solving follow problam ? what i want
just
B_col dat equally A-col like as under.
A_col B_col --- A_col B_col
1 1 1 1
2 2 2 2
3 4 3
4 6 4 4
5 5
6 6 6


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Match two row numric

Perhaps something like this:

If Col_B contains formulas that you need to keep intact....

Enter this ARRAY FORMULA* in C1:

=IF(ISNUMBER(B1),B1,INDEX(ROW($B$1:INDEX(B:B,MAX(B :B))),SMALL(IF(COUNTIF($B$1:INDEX(B:B,MAX(B:B)),RO W($B$1:INDEX(B:B,MAX(B:B)))+MIN(B:B)-1)=0,ROW($B$1:INDEX(B:B,MAX(B:B)))+MIN(B:B)-1),ROWS($1:1)-COUNT($B$1:B1))-MIN(B:B))+MIN(B:B))

That formula will listing the missing list numbers, starting in the cell to
the right of the first blank cell in Col_B. If a Col_B cell has a number,
that number is used in Col_C.

*Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

(Also, since text wrap is sure to impact the display, there are NO spaces in
that formula.)

Copy C1 into C2 and down as far as you need.

Then sort only columns B and C by Col_C

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Tufail" wrote:

hello,
is there anyway formula or macro for solving follow problam ? what i want just
B_col dat equally A-col like as under.
A_col B_col --- A_col B_col
1 1 1 1
2 2 2 2
3 4 3
4 6 4 4
5 5
6 6 6

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Match two row numric

yes working really very well, thank you very much.
tufail

"Ron Coderre" wrote:

Perhaps something like this:

If Col_B contains formulas that you need to keep intact....

Enter this ARRAY FORMULA* in C1:

=IF(ISNUMBER(B1),B1,INDEX(ROW($B$1:INDEX(B:B,MAX(B :B))),SMALL(IF(COUNTIF($B$1:INDEX(B:B,MAX(B:B)),RO W($B$1:INDEX(B:B,MAX(B:B)))+MIN(B:B)-1)=0,ROW($B$1:INDEX(B:B,MAX(B:B)))+MIN(B:B)-1),ROWS($1:1)-COUNT($B$1:B1))-MIN(B:B))+MIN(B:B))

That formula will listing the missing list numbers, starting in the cell to
the right of the first blank cell in Col_B. If a Col_B cell has a number,
that number is used in Col_C.

*Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

(Also, since text wrap is sure to impact the display, there are NO spaces in
that formula.)

Copy C1 into C2 and down as far as you need.

Then sort only columns B and C by Col_C

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Tufail" wrote:

hello,
is there anyway formula or macro for solving follow problam ? what i want just
B_col dat equally A-col like as under.
A_col B_col --- A_col B_col
1 1 1 1
2 2 2 2
3 4 3
4 6 4 4
5 5
6 6 6

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Match two row numric

thank you very much it's working very well, tufail

"RagDyeR" wrote:

Say you enter this formula in C1 and copy down as needed:

=IF(ISNA(MATCH(A1,$B$1:$B$100,0)),"",INDEX($B$1:$B $100,
MATCH(A1,$B$1:$B$100,0)))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Tufail" wrote in message
...
hello,
is there anyway formula or macro for solving follow problam ? what i want
just
B_col dat equally A-col like as under.
A_col B_col --- A_col B_col
1 1 1 1
2 2 2 2
3 4 3
4 6 4 4
5 5
6 6 6



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match Index cjjoo Excel Worksheet Functions 3 October 25th 05 09:33 AM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"