tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I've got an interesting one for you,
I have a list of numbers in two columns, with there reference number next to them,
now I have another list of just numbers in cloumns
I need help doing the following
1 Finding exact matches of the two numbers from the list and pulling the refrence numbers out,
2 finding the exact matches for either the first or second column, then finding the nearest number in the other column
3 Finding the nearest number in either column and then finding the nearest number in the other column?
So tio try explain in more detail,
Column A Reference Number,
Column B First Number (has 4-6 decimal paces like 123.7654)
Column C Second number,(has 4-6 decimal paces like 125.7654)
D blank
E2 = the first number I want to reference for example: 67.897
F2 = the 2nd number I want to reference for example: 100.001
G2 is where I want my results,
So if I was to put my formula in English it would read like this,
=look at the number in cell E2, look down column B and see if it has a match, if it does look at the value in column F2 and look down column C to see if it has a match,
if any of the matches of E2 or in the same row as F2, success! put the Ref Number in Column A of that row in G2, if not look down column B and see if there are any matches, if there are look down colmn C and see if there are any matches if there are matches in both work out which one has the closest number in the other row, and use that row into G2,
If no matches are found, find the closest Column B number to cell E2 and the closest Column C to F2,
work out which one is closer and use that one
II'm getting very confused with this as I can't just check one column then the other as its not quite that simple, please help
Tony
I've got an interesting one for you,
I have a list of numbers in two columns, with there reference number next to them,
now I have another list of just numbers in cloumns
I need help doing the following
1 Finding exact matches of the two numbers from the list and pulling the refrence numbers out,
2 finding the exact matches for either the first or second column, then finding the nearest number in the other column
3 Finding the nearest number in either column and then finding the nearest number in the other column?
So tio try explain in more detail,
Column A Reference Number,
Column B First Number (has 4-6 decimal paces like 123.7654)
Column C Second number,(has 4-6 decimal paces like 125.7654)
D blank
E2 = the first number I want to reference for example: 67.897
F2 = the 2nd number I want to reference for example: 100.001
G2 is where I want my results,
So if I was to put my formula in English it would read like this,
=look at the number in cell E2, look down column B and see if it has a match, if it does look at the value in column F2 and look down column C to see if it has a match,
if any of the matches of E2 or in the same row as F2, success! put the Ref Number in Column A of that row in G2, if not look down column B and see if there are any matches, if there are look down colmn C and see if there are any matches if there are matches in both work out which one has the closest number in the other row, and use that row into G2,
If no matches are found, find the closest Column B number to cell E2 and the closest Column C to F2,
work out which one is closer and use that one
II'm getting very confused with this as I can't just check one column then the other as its not quite that simple, please help
Tony