[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

excel vbs: fill column B with values of column A if B is empty

Posted on 2011-02-11
3
Medium Priority
?
301 Views
Last Modified: 2012-05-11
Dear Experts,

In an excel sheet I have values in seperate columns that need combined in that sense that if the cell in column B is empty the value of columnA 1 is filled in.
 I need to end up with 1 column ...

So that this:
12/03/2011 8:00      12/03/2011 18:00
12/03/2011 8:00      12/03/2011 18:00
12/03/2011 8:00      
12/03/2011 8:00      
12/03/2011 8:00      
12/03/2011 8:00      
12/03/2011 8:00      
12/03/2011 8:00      
12/03/2011 8:00      12/03/2011 18:01
12/03/2011 1:00      
12/03/2011 1:00      
12/03/2011 1:00      
12/03/2011 1:00      
12/03/2011 1:00      
12/03/2011 1:00      
12/03/2011 1:00      
12/03/2011 8:00      12/03/2011 16:15


Becomes that:

12/03/2011 8:00      12/03/2011 18:00
12/03/2011 8:00      12/03/2011 18:00
12/03/2011 8:00      12/03/2011 8:00
12/03/2011 8:00      12/03/2011 8:00
12/03/2011 8:00      12/03/2011 8:00
12/03/2011 8:00      12/03/2011 8:00
12/03/2011 8:00      12/03/2011 8:00
12/03/2011 8:00      12/03/2011 8:00
12/03/2011 8:00      12/03/2011 18:01
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 1:00      12/03/2011 1:00
12/03/2011 8:00      12/03/2011 16:15


Please have a look into this.
Many thanks in advance.
0
Comment
Question by:Watnog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34871271
You could use another column with formulas:
=if(B1="",A1,B1)
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 total points
ID: 34871277
Or select column B, press f5, click the Special button, then choose Blanks from the list and press OK. Now press = then the left arrow then Ctrl+Enter.
0
 

Author Closing Comment

by:Watnog
ID: 34871394
Excellent.
Thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question