Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop until a condition is False

Data
A1 - 10.01
A2 - 10.02

C1 - Capture Party Details
C2 - Capture Party Details
C3 - Capture Party Details
C4 - Capture Party Details
C5 - View Transaction

-------------------------------------------------------
What i want to do is in activecell 'Cell A3' compare cell C3 to C2. I
they match then put 10.02 into Cell A3. Move to A4. If C4 and C
match then put 10.02 into Cell A4. Move to A5. If C5 and C4 match the
put 10.02 into Cell A5 else if they don't match (and in this case the
don't) insert a new row with the value in A5 to be 20.01.

Make sense?

The row with xx.01 in column A signal a sub heading

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop until a condition is False

Matt
I'm not sure what the exact code for an IF statement is in VB, but it should go something like this

IF Range("C3").Value = Range("C2").value the
Range("A3").Value = "10.02
IF Range...

I'm sure there is more a dynamic way to do it, but that is the best way i can think of doing for now. Hope it helps
Also, like I said, I'm not sure how exact the code will work, its the idea of it that counts
Will

----- matt_steer wrote: ----

Dat
A1 - 10.0
A2 - 10.0

C1 - Capture Party Detail
C2 - Capture Party Detail
C3 - Capture Party Detail
C4 - Capture Party Detail
C5 - View Transactio

------------------------------------------------------
What i want to do is in activecell 'Cell A3' compare cell C3 to C2. I
they match then put 10.02 into Cell A3. Move to A4. If C4 and C
match then put 10.02 into Cell A4. Move to A5. If C5 and C4 match the
put 10.02 into Cell A5 else if they don't match (and in this case the
don't) insert a new row with the value in A5 to be 20.01

Make sense

The row with xx.01 in column A signal a sub heading


--
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
SUMPRODUCT with condition FIND(text) is false Go Bucks!!![_2_] Excel Worksheet Functions 2 October 7th 09 04:56 PM
VBA - Do Loop or SaveChanges = false Dan Excel Discussion (Misc queries) 1 January 23rd 09 05:54 PM
Keep cell blank if condition is false in IF function ruthslaughter Excel Discussion (Misc queries) 2 November 23rd 05 01:15 PM
How can I get a cell locked if the condition is false? FareedAhmed76 Excel Worksheet Functions 1 February 18th 05 01:49 PM
two-condition loop Jamie Martin[_2_] Excel Programming 0 October 6th 03 11:47 PM


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

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"