Formula for returning values from data

notkaran

New Member
Joined
Oct 19, 2015
Messages
12
Hi,

I have a data like this

[TABLE="width: 886"]
<tbody>[TR]
[TD]SWOD14658
[/TD]
[TD]GRN Ref. SWOD14658[/TD]
[TD]POW001[/TD]
[TD]POWA KADDY[/TD]
[TD]A03[/TD]
[TD]CART BAGS[/TD]
[TD]00808-01-01[/TD]
[/TR]
[TR]
[TD]SWOD14658[/TD]
[TD]GRN Ref. SWOD14658[/TD]
[TD]POW001[/TD]
[TD]POWA KADDY[/TD]
[TD]B01[/TD]
[TD]MANUAL CADDY CARS[/TD]
[TD]00582-02-01[/TD]
[/TR]
[TR]
[TD]SWOD14658[/TD]
[TD]GRN Ref. SWOD14658[/TD]
[TD]POW001[/TD]
[TD]POWA KADDY[/TD]
[TD]B02[/TD]
[TD]MOTORISED CADDY CARS[/TD]
[TD]00300-104-01[/TD]
[/TR]
[TR]
[TD]SWOD14658[/TD]
[TD]GRN Ref. SWOD14658[/TD]
[TD]POW001[/TD]
[TD]POWA KADDY[/TD]
[TD]B02[/TD]
[TD]MOTORISED CADDY CARS[/TD]
[TD]00700-108-01[/TD]
[/TR]
[TR]
[TD]SWOD14658[/TD]
[TD]GRN Ref. SWOD14658[/TD]
[TD]POW001[/TD]
[TD]POWA KADDY[/TD]
[TD]B02[/TD]
[TD]MOTORISED CADDY CARS[/TD]
[TD]00700-120-01[/TD]
[/TR]
[TR]
[TD]SWOD14658 Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SWOD14659[/TD]
[TD]GRN Ref. SWOD14659[/TD]
[TD]DFS001[/TD]
[TD]DF SPORTS[/TD]
[TD]C01[/TD]
[TD]SETS OF CLUBS[/TD]
[TD]SPALELITESTD[/TD]
[/TR]
[TR]
[TD]SWOD14659 Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SWOD14660[/TD]
[TD]GRN Ref. SWOD14660[/TD]
[TD]MAS001[/TD]
[TD]masters golf[/TD]
[TD]C10[/TD]
[TD]JUNIOR SETS[/TD]
[TD]SETMKL53[/TD]
[/TR]
[TR]
[TD]SWOD14660[/TD]
[TD]GRN Ref. SWOD14660[/TD]
[TD]MAS001[/TD]
[TD]masters golf[/TD]
[TD]C10[/TD]
[TD]JUNIOR SETS[/TD]
[TD]SETMKL57[/TD]
[/TR]
[TR]
[TD]SWOD14660 Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SWOE01575[/TD]
[TD]GRN Ref. SWOE01575[/TD]
[TD]PIN002[/TD]
[TD]PING EUROPE LTD[/TD]
[TD]H02[/TD]
[TD]GLOVES[/TD]
[TD]881978130384[/TD]
[/TR]
[TR]
[TD]SWOE01575 Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SWOE01576[/TD]
[TD]GRN Ref. SWOE01576[/TD]
[TD]OAK001[/TD]
[TD]OAKLEY[/TD]
[TD]F08[/TD]
[TD]SWEAT/FLEECE[/TD]
[TD]432837-762-L[/TD]
[/TR]
[TR]
[TD]SWOE01576[/TD]
[TD]GRN Ref. SWOE01576[/TD]
[TD]OAK001[/TD]
[TD]OAKLEY[/TD]
[TD]F08[/TD]
[TD]SWEAT/FLEECE[/TD]
[TD]432837-762-M[/TD]
[/TR]
[TR]
[TD]SWOE01576[/TD]
[TD]GRN Ref. SWOE01576[/TD]
[TD]OAK001[/TD]
[TD]OAKLEY[/TD]
[TD]F08[/TD]
[TD]SWEAT/FLEECE[/TD]
[TD]432837-762-S[/TD]
[/TR]
[TR]
[TD]SWOE01576[/TD]
[TD]GRN Ref. SWOE01576[/TD]
[TD]OAK001[/TD]
[TD]OAKLEY[/TD]
[TD]F08[/TD]
[TD]SWEAT/FLEECE[/TD]
[TD]432837-762-XL[/TD]
[/TR]
</tbody>[/TABLE]



What I would like to do is fetch the entries for, lets say SWOD14658 in a different sheet. I would require all the columns and all the rows for a particular GRN.

Since this data doesn't have any unique value, vlookup wouldn't work.

Any help would be appreciated.
 
Hi, yes, the procedure is the same. Verify if you adjusted all formulas accordingly, including the number of matching records.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi, yes, the procedure is the same. Verify if you adjusted all formulas accordingly, including the number of matching records.

Hi, yes I forgot to use control shift and enter, that's why it wasn't working.

=IF(ROWS(B$1:B3)>$A$2,"",SMALL(IF('[RECEIPTING RECORD ALL SHOPS MERIDIAN.xls]Meridian Sales Report'!$E$1:$E$10000=$A$1,ROW('[RECEIPTING RECORD ALL SHOPS MERIDIAN.xls]Meridian Sales Report'!$E3:$E10002)-ROW('[RECEIPTING RECORD ALL SHOPS MERIDIAN.xls]Meridian Sales Report'!$E$1)+1),ROWS(B$1:B3)))

Could you please check this formula?
If I drag this formula, its skipping one row everytime
Result is

4000
4002
4004
Hence the value its taking is incorrect.
 
Last edited:
Upvote 0
Hi, yes I forgot to use control shift and enter, that's why it wasn't working.

=IF(ROWS(B$1:B3)>$A$2,"",SMALL(IF('[RECEIPTING RECORD ALL SHOPS MERIDIAN.xls]Meridian Sales Report'!$E$1:$E$10000=$A$1,ROW('[RECEIPTING RECORD ALL SHOPS MERIDIAN.xls]Meridian Sales Report'!$E3:$E10002)-ROW('[RECEIPTING RECORD ALL SHOPS MERIDIAN.xls]Meridian Sales Report'!$E$1)+1),ROWS(B$1:B3)))

Could you please check this formula?
If I drag this formula, its skipping one row everytime
Result is

4000
4002
4004
Hence the value its taking is incorrect.

Nevermind, I re entered the formula and its back to normal, thank you so much.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top