Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Can't solve simple? problem. Can some genius out there help!

Want to pull simple data from two tables/sheets into a third and use formulas
(array or otherwise), not macros or filters. I only want to select rows for
customer CARL. Below is the example:

Table Deposits (First Table, one data source)
Customer Date Deposit
Carl 1/25/2008 $150,000.00
Carl 2/28/2009 $50,000.00
Joe 3/5/2008

Table Withdrawls (2nd Table another data source)
Customer Date Withdrawl
Carl 1/28/2008 (6000)
Joe 3/1/2008 (3000)
Carl 4/12/2008 (4000)
Joe 5/5/2008 (7000)

The desired final result is listed below. The column with the name CARL can
be omitted...just here to show the result data.

Customer Date Depost Withdrawl
Carl 1/25/2008 $150,000.00
Carl 1/28/2008 (6000)
Carl 2/28/2009 $50,000.00
Carl 4/12/2008 (4000)

Thanks for any help offered!!! Whatever FORMULAS are arrived at will be
greatly appreciated!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Can't solve simple? problem. Can some genius out there help!

Hi,

Try this

1. Add another columns to the deposits table and give it a heading, say
Action and all the entries under the column should be Deposits
2. Add another columns to the withdrawals table and give it the same heading
I.e. Action and all the entries under the column should be Withdrawals
3. Select the deposits table (including the header row and the new column
added) and assign it a name, say dep
4. Select the withdrawals table (including the header row and the new column
added) and assign it a name, say withd
5. Save the file (say try.xls), assume on the desktop
6. Now click on any blank cell and go to
In Excel 2003: Data Import External Data New Database query
In Excel 2007: Data Get External Data From Other Sources From
Microsoft Query
7. Select Excel files and click on OK
8. Navigate to the desktop and select try.xls in the left had pane. Click
on Next
9. In the Choose columns dialog box, select dep and click on the greater
then symbol
10. In the Choose columns dialog box, select withd and click on the greater
then symbol
11. Click on Next and in the dialog box which appears next, click on OK
12, Click on the SQL button and type the following:

Select * from dep union all select * from withd

13. Click on OK/Finish
14. Go to File Return Data to MS Office Excel
15. You should now see the import data box (if it does not appear, then
press Alt+tab to switch to a different window and return to try.xls)
16. Select pivot table and do the following:
- Drag Customer to the Page fields area and select Carl;
- Drag Date to the row area; and
- Drag Action to the Data area.

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Carl S." wrote in message
...
Want to pull simple data from two tables/sheets into a third and use
formulas
(array or otherwise), not macros or filters. I only want to select rows
for
customer CARL. Below is the example:

Table Deposits (First Table, one data source)
Customer Date Deposit
Carl 1/25/2008 $150,000.00
Carl 2/28/2009 $50,000.00
Joe 3/5/2008

Table Withdrawls (2nd Table another data source)
Customer Date Withdrawl
Carl 1/28/2008 (6000)
Joe 3/1/2008 (3000)
Carl 4/12/2008 (4000)
Joe 5/5/2008 (7000)

The desired final result is listed below. The column with the name CARL
can
be omitted...just here to show the result data.

Customer Date Depost Withdrawl
Carl 1/25/2008 $150,000.00
Carl 1/28/2008 (6000)
Carl 2/28/2009 $50,000.00
Carl 4/12/2008 (4000)

Thanks for any help offered!!! Whatever FORMULAS are arrived at will be
greatly appreciated!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Can't solve simple? problem. Can some genius out there help!

Excel 2007
Added to my previously suggested macro method:
Mathur's simple SQL procedu
Modified and illuminated.
http://www.mediafire.com/file/jjwutg...11_18_09b.xlsm
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
how can I solve this problem? Please help me theinzaw Excel Discussion (Misc queries) 0 December 13th 08 12:09 PM
Pls help me to solve this problem... Bradley Excel Worksheet Functions 13 July 21st 07 02:40 AM
Please solve this problem. ramulu Excel Worksheet Functions 1 February 15th 07 07:43 AM
simple average formula...can you solve it in principle? krasavchik Excel Discussion (Misc queries) 2 April 25th 06 06:48 PM
Can someone solve a problem for me? Jon Parker Excel Discussion (Misc queries) 1 April 25th 05 11:14 PM


All times are GMT +1. The time now is 11:55 PM.

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

About Us

"It's about Microsoft Excel"