Solved

Excel copy column to new sheet

Posted on 2011-09-26
5
200 Views
Last Modified: 2012-05-12
Hi,

I have an excel file that contains about 10 columns.  
I need to create three new columns on a new sheet based on the date range.

ID      col1                  col2           col3
1         9/1/2011     9/1/2011     9/1/2011
2         9/2/2011                        
3         9/3/2011     9/6/2011
4         9/4/2011     9/3/2011
5         9/5/2011

let's say, date range is 9/1-9/5

new sheet

col1   col2   col3
1       1       1
2       4
3
4
5
0
Comment
Question by:mcrmg
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Kannan K
ID: 36598446
Hi,

could you please attach the sample excel workbook what you are expecting

KK.
0
 

Author Comment

by:mcrmg
ID: 36598458
please have a look..thx
Book1.xls
0
 
LVL 5

Expert Comment

by:Kannan K
ID: 36598497
Hi,

What is the expected output, which logic has applied to get the results,

col1   col2   col3
1       1       1
2       4
3
4
5

Where these above values will get filled, is it a count? or sum? etc.,

KK,
0
 

Author Comment

by:mcrmg
ID: 36598505
hi,

The logic is to get any row that within 9/1-9/5


and place the ID column into the new sheet..thx
0
 
LVL 5

Accepted Solution

by:
Kannan K earned 250 total points
ID: 36599072
Hi,

Please find the excel sheet as per your requirement,

the formula used - =IF(AND(Sheet1!B2>=$B$1, Sheet1!B2<=$B$2),Sheet1!$A2,"")

KK,
Book1.xlsx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now