Solved

Excel copy column to new sheet

Posted on 2011-09-26
5
197 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:Kannan253984
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:Kannan253984
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:
Kannan253984 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

743 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

12 Experts available now in Live!

Get 1:1 Help Now