LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help needed guys!!!!, Excel macro


hey guys I need help with a problem in excel
Below is an example of my spreadsheet
ignore the -----, they are just there to keep the allgning for thi
thread

A---------------B-------------C----------D----------E

1 XXX--------product:------XXXX
2 XXX--------id:-------------YYYY
3 XXX
4 XXX
5 start------other data---
6 XXX
7 XXX
8 XXX-------product:-------MMMM
9 XXX-------id:--------------NNNN
10 XXX
11 XXX
12 XXX
13 XXX
14 XXX
15 start-------other data---


_what_i_need_to_happen_
Value XXXX needs to be placed in D5
Value YYYY needs to be placed in E5

Value MMMM needs to be placed in D15
Value NNNN needs to be placed in E15



My suggested method of doing this.

_Aim_
I need to get the value from the cell C1 and C2 and add them to
D5 and E5. And again I need to take the different values from
C8 and C9 and add them to D15 and E15.


The spreadsheet is very large and has this same pattern all the wa
down, The difference in rows between the cell contianing the keywor
start and the cells containing the values of product and id are no
constant throughout the spreadsheet.

I need a For loop to check all of Row B to check for the valu
"product:" i.e B1.
when it finds this it needs to store the value realting to the produc
i.e C1
Also it will need to check for "ID:" and store the value relating t
this ie. C2.
These two values need to be stored in variables. As each new value o
product and ID is reached as the for loop progresses down th
spreadsheet the current values in the variables will be overwritten.


At the same time Column A will have to be check for the word "start" i
a cell is found with the keyword start then the values in two variable
will need to be added to the corresponding row in column D and E.

Can someone please give me the code that will do this?

--
eaki
-----------------------------------------------------------------------
eakin's Profile: http://www.excelforum.com/member.php...fo&userid=1597
View this thread: http://www.excelforum.com/showthread.php?threadid=27445

 
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
VBA guys needed [email protected] Excel Worksheet Functions 1 February 20th 09 05:32 PM
Excel Macro Needed [email protected] Excel Discussion (Misc queries) 2 April 2nd 08 10:36 PM
another excel question, thanks guys! brandon roland[_2_] Excel Discussion (Misc queries) 4 August 3rd 07 08:14 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
help needed with excel macro shaltar[_6_] Excel Programming 1 November 21st 03 07:34 PM


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