help copy and skip blanks using formula

ulycalapuz

New Member
Joined
Dec 17, 2017
Messages
2
SHEET 1
[TABLE="width: 250"]
<tbody>[TR]
[TD="align: center"]GIVEN[/TD]
[TD="align: center"]ITEMS[/TD]
[TD="align: center"]PACKING[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]APPLE[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]ORANGE[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]BANANA[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]GRAPES[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]WATERMELON[/TD]
[TD="align: center"]25 KGS[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]STRAWBERRY[/TD]
[TD="align: center"]30 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]PINEAPPLE[/TD]
[TD="align: center"]40 KGS[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]MANGO[/TD]
[TD="align: center"]10 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]POMEGRANATE[/TD]
[TD="align: center"]5 KGS[/TD]
[/TR]
</tbody>[/TABLE]


SHEET 2 - HOW I WANT IT TO BE:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]GIVEN[/TD]
[TD="align: center"]ITEMS[/TD]
[TD="align: center"]PACKING[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]APPLE[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]BANANA[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]GRAPES[/TD]
[TD="align: center"]20 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]PINEAPPLE[/TD]
[TD="align: center"]40 KGS[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]POMEGRANATE[/TD]
[TD="align: center"]5 KGS[/TD]
[/TR]
</tbody>[/TABLE]

I would like to make a formula without using VBA where I can automatically copy all given row with number value and skip blanks and copy it's column b and c at the same time also.
Thank you in advance.:)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
1] In "Sheet2" A2, copied down :

=IFERROR(INDEX(Sheet1!A$2:A$100,AGGREGATE(15,6,ROW(Sheet1!A$2:A$100)-ROW(Sheet1!A$1)/(Sheet1!A$2:A$100<>""),ROWS($1:1))),"")

2] In "Sheet2" B2, copied right to C2 and all copied down :

=IF($A2="","",INDEX(Sheet1!B$2:B$100,MATCH($A2,Sheet1!$A$2:$A$100,0)))

Regards
Bosco
 
Upvote 0
Hi Bosco,

Thank you for the reply.
If I have insert the same given number to row A it copies in Row B the first column that it sees.
Anyhow can you send me an e-mail @ ulyca@unicloth.net so I can explain further? Thank you!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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