473,386 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Matching Values please help

Hello

I am new to VBA and I am having trouble with the program I want to develop.

My project involves looking at two data sets in different columns and rows and comparing them.
For example
CHRMT1(I) RMT1(J) Area1(K) CHRMT2(S) RMT2(T) Area2(U)
1 | 0.1 | 100 | 1 | 0.4 | 3
1 | 0.5 | 110 | 1 | 0.6 | 3.2
2 | 0.2 | 115 | 1 | 0.7 | 3.3
3 | 0.3 | 120 | 1 | 0.8 | 3.4
4 | 1.2 | 125 | 2 | 0.2 | 3.5
5 | 1.4 | 130 | 7 | 0.9 | 3.6

So what I would like the program to do is look at CHRMT1 and check if the value exists in CHRMT2. If it does, then look at RMT1 for CHRMT1 and check if a value within + or - 2% of RMT1 exists in RMT2. If that is the case (like for value 2) then Area 1 needs to be inserted beside Area2.

Additionally, if a value in CHRMT 1 is not present in CHRMT2 (ex. 3,4 or 5) then I would like the values to be inserted after 2 and before 7.
I am not sure how I can make the program search for value bigger than CHRMT1 and insert it before.

Any help would be greatly appreciated.
Thanks so much
Liliana
Jul 15 '07 #1
0 898

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Andrew McLean | last post by:
I have a problem that is suspect isn't unusual and I'm looking to see if there is any code available to help. I've Googled without success. Basically, I have two databases containing lists of...
2
by: Gary Greenberg | last post by:
2
by: Hennie | last post by:
I apologise if this is a stupid question, but I would appreciated any help on this subject. I want to create a view (VIEW_1 in example below) where I take numeric values from a field in one...
2
by: vvyshak | last post by:
Hi all.. I have two tables such as cisco and ciscocom. and i wan to compare each row of ciscocom with cisco having same column values. i wan to get the count of matching columns for each row in...
9
by: Jim Lewis | last post by:
Anyone have experience with string pattern matching? I need a fast way to match variables to strings. Example: string - variables ============ abcaaab - xyz abca - xy eeabcac - vxw x...
7
by: figital | last post by:
Given an ID (column B), I need to find which IDs have identical data. That is, given '200', I want the desired result to be: 100 The idea is that the system sees that id=200 has 5 records with...
12
by: erick-flores | last post by:
Hello all, Here is what i am trying to do doing: Form A & Form B Form A: compressor_id = 23 Description: test Form B: stage_id = 12 compressor_fk = compressor_id
6
by: andyalean1 | last post by:
Hello, I am trying to match an Id number that is shared across 2 xml files.I seem to be do the right thing bu it won`t display a match.Can you please help me find my error. I have a problem matching...
5
by: johnhelen | last post by:
Hello I want to parse a String with empty spaces to separate fields into a hash: use strict; use warnings; my $data = 'ACCESS:NO PROXYNAME:localhost URL:http://localhost/ MDN:none...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.