Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is it possible to do that using excel formulas ?

Hi All,

I'm working an a small macro to make my daily work easier
Unfortunately I'm not good enough in excel to make it 100% by myself
That's why I would really much appreciate your help on this ;-)

I've attached the file in this post.

Here is the problem :

Below are the datas from the sheet "Estim - FX contracts by Fund"

SELL JPY 496.000,00 BUY USD 16/07/2004
SELL USD 15.234,59 BUY EUR 19/07/2004
BUY EUR -8.711,74 SELL USD 19/07/2004
SELL USD 630.909,49 BUY EUR 19/07/2004
SELL CHF 136,78 BUY EUR 19/07/2004
BUY USD -11.563,43 SELL JPY 16/07/2004
BUY USD -10.168,00 SELL JPY 16/07/2004
BUY USD -398,02 SELL JPY 20/07/2004


Here are the results from the sheet I would like to be generate
automaticly in the sheet "Estim -Aggregate FX contracts". It's in fac
a summary of the above datas by currency and same value date.


SELL JPY 496.000,0 BUY USD 16/07/2004
SELL USD 646.144,08 BUY EUR 19/07/2004
SELL CHF 136,78 BUY EUR 19/07/2004
BUY USD -21.731,43 SELL JPY 16/07/2004
BUY USD -398,02 SELL JPY 20/07/2004
BUY EUR -8.711,74 SELL USD 19/07/2004


For instance 646.144,08 is the sum of those 2 lines :
SELL USD 15.234,59 BUY EUR 19/07/2004
SELL USD 630.909,49 BUY EUR 19/07/2004

Does anyone has an idea how I could do that ? I don't think tha
sumprod would work in that case. Would it ?

Thank you very much in advance,

Gre

Attachment filename: gregsmacro.zip
Download attachment: http://www.excelforum.com/attachment.php?postid=62035
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Is it possible to do that using excel formulas ?

If the information from a row is separated into different columns for
easy identification, then SUMPRODUCT would probably work just fine. For
Example

=SUMPRODUCT((A1:A10="SELL USD")*(C1:C10="BUY
EUR")*(D1:D10=DATEVALUE("19/07/2004")),B1:B10)

Jerry

Grek < wrote:

Hi All,

I'm working an a small macro to make my daily work easier.
Unfortunately I'm not good enough in excel to make it 100% by myself.
That's why I would really much appreciate your help on this ;-)

I've attached the file in this post.

Here is the problem :

Below are the datas from the sheet "Estim - FX contracts by Fund"

SELL JPY 496.000,00 BUY USD 16/07/2004
SELL USD 15.234,59 BUY EUR 19/07/2004
BUY EUR -8.711,74 SELL USD 19/07/2004
SELL USD 630.909,49 BUY EUR 19/07/2004
SELL CHF 136,78 BUY EUR 19/07/2004
BUY USD -11.563,43 SELL JPY 16/07/2004
BUY USD -10.168,00 SELL JPY 16/07/2004
BUY USD -398,02 SELL JPY 20/07/2004


Here are the results from the sheet I would like to be generated
automaticly in the sheet "Estim -Aggregate FX contracts". It's in fact
a summary of the above datas by currency and same value date.


SELL JPY 496.000,0 BUY USD 16/07/2004
SELL USD 646.144,08 BUY EUR 19/07/2004
SELL CHF 136,78 BUY EUR 19/07/2004
BUY USD -21.731,43 SELL JPY 16/07/2004
BUY USD -398,02 SELL JPY 20/07/2004
BUY EUR -8.711,74 SELL USD 19/07/2004


For instance 646.144,08 is the sum of those 2 lines :
SELL USD 15.234,59 BUY EUR 19/07/2004
SELL USD 630.909,49 BUY EUR 19/07/2004

Does anyone has an idea how I could do that ? I don't think that
sumprod would work in that case. Would it ?

Thank you very much in advance,

Greg

Attachment filename: gregsmacro.zip
Download attachment: http://www.excelforum.com/attachment.php?postid=620353
---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Is it possible to do that using excel formulas ?

for all dates try
=SUMPRODUCT((E3:E10="SELL")*(F3:F10="USD")*G3:G10)
& for the date change your date to fit
=SUMPRODUCT((E3:E10="SELL")*(F3:F10="USD")*(K3:K10 =DATEVALUE("7/19/2004"))*G
3:G10)
I'm not quite sure of your criteria but the k valuation could be based on a
cell k3:k10=k3
--
Don Guillett
SalesAid Software

"Grek " wrote in message
...
Hi All,

I'm working an a small macro to make my daily work easier.
Unfortunately I'm not good enough in excel to make it 100% by myself.
That's why I would really much appreciate your help on this ;-)

I've attached the file in this post.

Here is the problem :

Below are the datas from the sheet "Estim - FX contracts by Fund"

SELL JPY 496.000,00 BUY USD 16/07/2004
SELL USD 15.234,59 BUY EUR 19/07/2004
BUY EUR -8.711,74 SELL USD 19/07/2004
SELL USD 630.909,49 BUY EUR 19/07/2004
SELL CHF 136,78 BUY EUR 19/07/2004
BUY USD -11.563,43 SELL JPY 16/07/2004
BUY USD -10.168,00 SELL JPY 16/07/2004
BUY USD -398,02 SELL JPY 20/07/2004


Here are the results from the sheet I would like to be generated
automaticly in the sheet "Estim -Aggregate FX contracts". It's in fact
a summary of the above datas by currency and same value date.


SELL JPY 496.000,0 BUY USD 16/07/2004
SELL USD 646.144,08 BUY EUR 19/07/2004
SELL CHF 136,78 BUY EUR 19/07/2004
BUY USD -21.731,43 SELL JPY 16/07/2004
BUY USD -398,02 SELL JPY 20/07/2004
BUY EUR -8.711,74 SELL USD 19/07/2004


For instance 646.144,08 is the sum of those 2 lines :
SELL USD 15.234,59 BUY EUR 19/07/2004
SELL USD 630.909,49 BUY EUR 19/07/2004

Does anyone has an idea how I could do that ? I don't think that
sumprod would work in that case. Would it ?

Thank you very much in advance,

Greg

Attachment filename: gregsmacro.zip
Download attachment:

http://www.excelforum.com/attachment.php?postid=620353
---
Message posted from http://www.ExcelForum.com/



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
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
ms-excel guidence notes, complete formulas in excel, How to runmacros in Ms excel [email protected] Excel Discussion (Misc queries) 0 June 14th 08 03:19 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
Excel recalculates formulas when opening files last saved by an earlier version of Excel Jim Rech Excel Programming 0 April 7th 04 06:47 PM


All times are GMT +1. The time now is 07:14 AM.

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"