PC Review


Reply
Thread Tools Rate Thread

2 sheets- Need a macro take a value from one find it into another then copy a value

 
 
fingers26
Guest
Posts: n/a
 
      15th Sep 2004
Please can some one help

I have two sheets- Sales and Report

On sheet “Sales” I have a column -B. This column lists the sales, which
are taken from sheet “report”
A B
Date Sales
01-Jul-04 -18,109.14

In the “report” sheet I have a jumble of information, though on column
I have a description with the last eight digits matching the date (in
every case)
G H I

-17,228.88 01.07.2004 Sales 01072004

What I want is a macro (formula) to look up “sales” column A2 for the
date. Convert it into the same format as in Sheet “Report” and search
for that value in column I (there will only ever be 2 transactions for
each date). Then I need the $ values (in column G) of each successful
find in column I to be added together and placed in Column B in Sales.


I have 7 months of hundreds of transactions to sort in this way and
haven’t been able to find a different way…. Help anyone??


---
Message posted from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      15th Sep 2004
Fingers,

Forget formulas, and try a pivot table, based on the data on sheet Report.
Use H as your row key, and G as your data.

HTH,
Bernie
MS Excel MVP

"fingers26 >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Please can some one help
>
> I have two sheets- Sales and Report
>
> On sheet "Sales" I have a column -B. This column lists the sales, which
> are taken from sheet "report"
> A B
> Date Sales
> 01-Jul-04 -18,109.14
>
> In the "report" sheet I have a jumble of information, though on column
> I have a description with the last eight digits matching the date (in
> every case)
> G H I
>
> -17,228.88 01.07.2004 Sales 01072004
>
> What I want is a macro (formula) to look up "sales" column A2 for the
> date. Convert it into the same format as in Sheet "Report" and search
> for that value in column I (there will only ever be 2 transactions for
> each date). Then I need the $ values (in column G) of each successful
> find in column I to be added together and placed in Column B in Sales.
>
>
> I have 7 months of hundreds of transactions to sort in this way and
> haven't been able to find a different way.. Help anyone??
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
VENKAT
Guest
Posts: n/a
 
      16th Sep 2004
use vlookup function and reformat it.


On Wed, 15 Sep 2004 06:52:41 -0500, fingers26
<<(E-Mail Removed)>> wrote:

> Please can some one help
>
> I have two sheets- Sales and Report
>
> On sheet “Sales” I have a column -B. This column lists the sales, which
> are taken from sheet “report”
> A B
> Date Sales
> 01-Jul-04 -18,109.14
>
> In the “report” sheet I have a jumble of information, though on column
> I have a description with the last eight digits matching the date (in
> every case)
> G H I
>
> -17,228.88 01.07.2004 Sales 01072004
>
> What I want is a macro (formula) to look up “sales” column A2 for the
> date. Convert it into the same format as in Sheet “Report” and search
> for that value in column I (there will only ever be 2 transactions for
> each date). Then I need the $ values (in column G) of each successful
> find in column I to be added together and placed in Column B in Sales.
>
>
> I have 7 months of hundreds of transactions to sort in this way and
> haven’t been able to find a different way…. Help anyone??
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>




--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find and copy cells between sheets?? rishi Microsoft Excel Programming 1 22nd May 2007 07:16 PM
how to find and copy cells between sheets?? rishi Microsoft Excel Programming 2 22nd May 2007 07:16 PM
how to find and copy cells between sheets?? rishi Microsoft Excel Programming 2 22nd May 2007 03:00 PM
RE: Macro - 2 Sheets - Find/Insert/Copy/Paste =?Utf-8?B?c2hvcnRpY2FrZQ==?= Microsoft Excel Programming 0 12th Mar 2007 09:21 PM
Macro to copy sheets FGOMEZ Microsoft Excel Discussion 1 15th Jul 2005 06:05 PM


Features
 

Advertising
 

Newsgroups
 


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