Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jhicker
 
Posts: n/a
Default Creating Consolidated Spreadsheet...


I have two seperate worksheets with data from two companies. Example:

(Worksheet 1)

COMPANY A
McDonalds Account
Burger King Account
Wal Mart Account

(Worksheet 2)

COMPANY B
Outback Account
Home Depot Account

I would like to create a third worksheet that will consolidate the
entries for the two companies. I would want it to look like:

BOTH COMPANIES
McDonalds Account
Burger King Account
Wal Mart Account
Outback Account
Home Depot Account

The problem is that the number of entries in each company will change
from month to month. But I would like to create a formula of some sort
that will list all entries in the first sheet and then pick up showing
the entries in the second sheet in one consolidated list. I've been
going this route:

=IF('SHEET1'!A2<"",'SHEET1'!A2,'SHEET2'!$A$2)

This gets all the first list and the first entry of the second list but
I can't modify the formula to add entries in order after the first entry
on the second sheet. I could manually modify the formula to display the
data right this month but when the variable change next month it will
need to be modified again (I could copy paste alot faster if I was
going to do this).

Is there anyway to do this without getting into VBA code?

Thanks!
Jon


--
jhicker
------------------------------------------------------------------------
jhicker's Profile: http://www.excelforum.com/member.php...o&userid=31736
View this thread: http://www.excelforum.com/showthread...hreadid=514516

  #2   Report Post  
Posted to microsoft.public.excel.misc
Tom Ogilvy
 
Posts: n/a
Default Creating Consolidated Spreadsheet...

In A1 of Sheet3 enter:

=IF(ROW()<=COUNTA(Sheet1!A:A),Sheet1!A1,INDIRECT(A DDRESS(ROW()-COUNTA(Sheet1
!A:A),1,1,TRUE,"Sheet2")))

in B1

=IF(ROW()<=COUNTA(Sheet1!A:A),Sheet1!B1,INDIRECT(A DDRESS(ROW()-COUNTA(Sheet1
!A:A),2,1,TRUE,"Sheet2")))

Then drag fill down the column until you run out of data.

--
Regards,
Tom Ogilvy


"jhicker" wrote in
message ...

I have two seperate worksheets with data from two companies. Example:

(Worksheet 1)

COMPANY A
McDonalds Account
Burger King Account
Wal Mart Account

(Worksheet 2)

COMPANY B
Outback Account
Home Depot Account

I would like to create a third worksheet that will consolidate the
entries for the two companies. I would want it to look like:

BOTH COMPANIES
McDonalds Account
Burger King Account
Wal Mart Account
Outback Account
Home Depot Account

The problem is that the number of entries in each company will change
from month to month. But I would like to create a formula of some sort
that will list all entries in the first sheet and then pick up showing
the entries in the second sheet in one consolidated list. I've been
going this route:

=IF('SHEET1'!A2<"",'SHEET1'!A2,'SHEET2'!$A$2)

This gets all the first list and the first entry of the second list but
I can't modify the formula to add entries in order after the first entry
on the second sheet. I could manually modify the formula to display the
data right this month but when the variable change next month it will
need to be modified again (I could copy paste alot faster if I was
going to do this).

Is there anyway to do this without getting into VBA code?

Thanks!
Jon


--
jhicker
------------------------------------------------------------------------
jhicker's Profile:

http://www.excelforum.com/member.php...o&userid=31736
View this thread: http://www.excelforum.com/showthread...hreadid=514516



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Creating Consolidated Spreadsheet...

You might want to use MS Query to consolidate the data from your
two worksheets:

This example uses 2 named ranges in 2 different sheets of the same workbook.

Assumptions:
The data in each worksheet is structured like a table:
---Col headings (Dept, PartNum, Desc, Price)
---Columns are in the same order.

The data in each sheet must be in named ranges.
---I used rngCompAData for Company A's data and rngCompBData for Company
B's data

Save the workbook before proceeding:

(Note: MS Query may display warnings about it's ability to show the query
....ignore them and proceed.)

Starting with an empty worksheet:
1)Select the cell where you want the consolidated data to start

2)DataImport External DataNew Database Query
Databases: Excel Files


Browse to the file, pick the data range to import.
---Accept defaults until the next step.

At The last screen select the View data/Edit the Query option.

Click the [SQL] button

Replace the displayed SQL code with an adapted version of this:

SELECT * FROM `C:\MyWorkbook`.rngCompAData
UNION ALL
SELECT * FROM `C:\MyWorkbook`.rngCompBData

(Note: the apostrophes in the SQL code ( ` )are located on the same key as
the tilde (~) )

Return the data to Excel.

Once that is done....to get the latest data just click in the data range
then DataRefresh Data.
(You can edit the query at any time to add/remove data sources and/or fields.)


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"jhicker" wrote:


I have two seperate worksheets with data from two companies. Example:

(Worksheet 1)

COMPANY A
McDonalds Account
Burger King Account
Wal Mart Account

(Worksheet 2)

COMPANY B
Outback Account
Home Depot Account

I would like to create a third worksheet that will consolidate the
entries for the two companies. I would want it to look like:

BOTH COMPANIES
McDonalds Account
Burger King Account
Wal Mart Account
Outback Account
Home Depot Account

The problem is that the number of entries in each company will change
from month to month. But I would like to create a formula of some sort
that will list all entries in the first sheet and then pick up showing
the entries in the second sheet in one consolidated list. I've been
going this route:

=IF('SHEET1'!A2<"",'SHEET1'!A2,'SHEET2'!$A$2)

This gets all the first list and the first entry of the second list but
I can't modify the formula to add entries in order after the first entry
on the second sheet. I could manually modify the formula to display the
data right this month but when the variable change next month it will
need to be modified again (I could copy paste alot faster if I was
going to do this).

Is there anyway to do this without getting into VBA code?

Thanks!
Jon


--
jhicker
------------------------------------------------------------------------
jhicker's Profile: http://www.excelforum.com/member.php...o&userid=31736
View this thread: http://www.excelforum.com/showthread...hreadid=514516


  #4   Report Post  
Posted to microsoft.public.excel.misc
jhicker
 
Posts: n/a
Default Creating Consolidated Spreadsheet...


I think this will work for me. I need to tweak it as the charts I'm
using are actually a little more complicated but I think I can take it
from here.

Thanks for your help!

Jon


--
jhicker
------------------------------------------------------------------------
jhicker's Profile: http://www.excelforum.com/member.php...o&userid=31736
View this thread: http://www.excelforum.com/showthread...hreadid=514516

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy From One Spreadsheet To Another Spreadsheet Copy Excel Discussion (Misc queries) 0 February 15th 06 06:21 PM
inserting image and document files into the spreadsheet Cornpone Excel Discussion (Misc queries) 7 January 30th 06 12:50 PM
Displaying contents of cell on different spreadsheet telewats Excel Discussion (Misc queries) 1 January 26th 06 04:58 PM
Scan and copy cells from one spreadsheet to another. Mark Excel Discussion (Misc queries) 1 April 6th 05 06:45 PM
Some exported records do not show on spreadsheet vulcan88 Excel Worksheet Functions 0 March 30th 05 01:11 AM


All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"