Copy non-blank cells

cranmax

New Member
Joined
Jul 25, 2016
Messages
16
Hello,

I'm new to this page so hello to all.
I've got two questions and what I want to achieve is Column B:

1. How could I... (I'll explain it the most graphic I can)

Column
A B
Rows: 1 3200
2 3200 world
3
4
5 world

Note: all the cells contain a formula, so the output of A1, A3, A5 is ""

2. How could I transform to Excel date?

Column
A B
Rows: 1 19820421 21/04/1982
2 19820422 22/04/1982
3 19820425 25/04/1982
4 19820426 26/04/1982

Thanks.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I don't get your first request - sorry. It's far from clear.

Second request - this in B1 copied down:

=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4)
 
Upvote 0
What a mess! I will put it on an image.
IMG_20160725_133504_hdr.jpg
[/url][/IMG]
 
Upvote 0
I've already dealt with your second query. In the first, are you simply looking to eliminate blank rows?
 
Upvote 0
Copy this into B1:

=IFERROR(INDEX($A$1:$A$5,SMALL(IF($B$1:$B$5=1,ROW($A$1:$A$5)),ROWS($A$1:A1))),"")

Confirm by clicking CTRL+SHIFT+ENTER, and then drag down. This is an array formula: confirming it in this way will add curly brackets (braces) to the formula.

You don't need column C for this at all.
 
Last edited:
Upvote 0
Hi, welcome aboard!

2. How could I transform to Excel date?

Here is another option for 2. that returns a true excel date (note you may need to format as appropriate).


Excel 2013
AB
11982042121/04/1982
21982042222/04/1982
31982042525/04/1982
41982042626/04/1982
Sheet1
Cell Formulas
RangeFormula
B1=TEXT(A1,"0000-00-00")+0
 
Upvote 0
Copy this into B1:

=IFERROR(INDEX($A$1:$A$5,SMALL(IF($B$1:$B$5=1,ROW($A$1:$A$5)),ROWS($A$1:A1))),"")

Confirm by clicking CTRL+SHIFT+ENTER, and then drag down. This is an array formula: confirming it in this way will add curly brackets (braces) to the formula.

You don't need column C for this at all.

I don't obtain what I'm asking; the output are zeros and the cells have braces like you post. Here's the image similar to the other but without formula.

 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,357
Members
449,155
Latest member
ravioli44

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