LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default MACRO TO LOOKUP AND SUM

On 18 Apr, 12:05, "Mark Ivey" wrote:
K,

If you can do the same with this file (upload it for me to review it), I
will see if I can provide a fix for it.

BTW - would you mind taking a minute to rate the results you are getting
from the people that do help you out...

Mark Ivey

"K" wrote in message

...



ROW * * A * * * * B * * * *C * * * D * * * * * E * * * * F--col
1 * * * * CODE * CO * * *AC * * FO * * * CR (-) * *DR (+)
2 * * * * * 1LD * * *M * * * X1 * * GGG * -1000 * * 2000
3 * * * * * 1LD * * *M * * * X1 * * GGG * -2000 * * 4000
4 * * * * * 1LD * * *M * * * X2 * * SSS * *-300 * * * 500
5 * * * * * 4EN * * *G * * * X2 * * SSS * *-4000 * * 8000
6 * * * * * 4EN * * *G * * * X2 * * SSS * *-5000 * * 10000
7 * * * * * 4EN * * *S * * * X3 * * TTT * * *-6000 * * 12000
8 * * * * * 3CO * * *S * * * X3 * * TTT * * *-7000 * * 14000
9 * * * * * 3CO * * *S * * * X4 * * SSS * * -8000 * * 16000
10 * * * * 3CO * * *S * * * X4 * * SSS * * -9000 * * 18000


In Sheet2 I got spreadsheet template setup (see below)


ROW * * A * * * * * B * * * * *C * * * * D * * * *E * * *F * * * *G--
col
1 * * * * *REF * * * *CR * * * *CR * * * CR * * *DR * DR * * *DR
2 * CO-AC-FO * * 1LD * * * 3CO * * 4EN * *1LD * 3CO * 4EN


I want macro which should produce result like this in Sheet2 from
Sheet1 (see below). Please if anybody can help


(Shee2)
ROW * * A * * * * * B * * * * C * * * *D * * * E * * * *F * * * G--
col
1 * * * *REF * * * * *CR * * * CR * * *CR * * DR * * DR * * DR
2 * CO-AC-FO * * 1LD * * *3CO * *4EN * 1LD * *3CO * 4EN
3 * M *X1 *GGG * -3000 * * * * * * * * * * * *6000
4 * M *X2 *SSS * *-300 * * * * * * * * * * * * *500
5 * G *X2 *SSS * * * * * * * * * * * * *-9000
18000
6 * S *X3 *TTT * * * * * * * * * * * * * *-6000
2000
7 * S *X3 *TTT * * * * * * * * *-7000 * * * * * * * * * * 14000
8 * S *X4 *SSS * * * * * * * *-17000 * * * * * * * * * *34000


basically macro should look in Sheet1 Data and then make result like
above- Hide quoted text -


- Show quoted text -


sorry Mark i never realised that i can rate someone aswell. i'll do
that from now on. Thanks for the help as joel has solved my prolem. i
must say i am learing quite lot from you all. thank for all knowledge
 
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
macro Lookup DamienO Excel Worksheet Functions 3 October 23rd 09 09:44 AM
Is it possible...lookup macro Haxer Excel Programming 5 August 4th 07 08:50 AM
Using Lookup in a macro Fred Smith Excel Programming 1 March 10th 07 04:18 AM
lookup macro?? darkbearpooh1 Excel Worksheet Functions 9 February 22nd 06 05:56 AM
Lookup Macro Dthmtlgod Excel Programming 5 April 16th 04 09:19 PM


All times are GMT +1. The time now is 09:28 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"