Bookmaster
Board Regular
- Joined
- Mar 22, 2014
- Messages
- 85
- Office Version
- 2021
- Platform
- Windows
Hello,
I need help with the excel function or it could be a VBA.
I have an excel worksheet with tho sheets.
I need a function that will:
On Sheet 1, take the value found in field A2, then look for that value on Sheet 2 in Column B. If found, it should take the value from column A from the same row on Sheet 2 and write it on Sheet 1 in column N line 2.
Then he should take the value in field A3 on Sheet 1 and look for the same value on Sheet 2 in column B. When it is found, it should take the value from column A from the same line on Sheet 2 and write it on Sheet 1, in column N, in row 3
So it takes value from A on Sheet 1, look for that value in Column B on Sheet 2. When it is founds take the value from column A from the same line where the value is found and put it in column N in the line where starting value is taken, on Sheet 1.
Note that values in column B on Sheet 2 are complex, I mean it contains many words and characters. The function should find the same value anywhere in column B.
Example:
On Sheet 1 in field A2 I have the number 10710. The function should take that number, and look for it on Sheet 2 in column B. Let's say we find it in field B67. Now take the number from field A67 on sheet 2 and put it in field N2 on Sheet 1.
Then on Sheet 1 in field A3 I have the value HK1119630. The function should take that value, and look for it on Sheet 2 in column B. Let's say it was found in field B375. Now the function should take the value from field A375 from Sheet 2 and write it into field N3 on Sheet 1
The function should go all the way until it has passed all the values found on Sheet 1 in column A
I need help with the excel function or it could be a VBA.
I have an excel worksheet with tho sheets.
I need a function that will:
On Sheet 1, take the value found in field A2, then look for that value on Sheet 2 in Column B. If found, it should take the value from column A from the same row on Sheet 2 and write it on Sheet 1 in column N line 2.
Then he should take the value in field A3 on Sheet 1 and look for the same value on Sheet 2 in column B. When it is found, it should take the value from column A from the same line on Sheet 2 and write it on Sheet 1, in column N, in row 3
So it takes value from A on Sheet 1, look for that value in Column B on Sheet 2. When it is founds take the value from column A from the same line where the value is found and put it in column N in the line where starting value is taken, on Sheet 1.
Note that values in column B on Sheet 2 are complex, I mean it contains many words and characters. The function should find the same value anywhere in column B.
Example:
On Sheet 1 in field A2 I have the number 10710. The function should take that number, and look for it on Sheet 2 in column B. Let's say we find it in field B67. Now take the number from field A67 on sheet 2 and put it in field N2 on Sheet 1.
Then on Sheet 1 in field A3 I have the value HK1119630. The function should take that value, and look for it on Sheet 2 in column B. Let's say it was found in field B375. Now the function should take the value from field A375 from Sheet 2 and write it into field N3 on Sheet 1
The function should go all the way until it has passed all the values found on Sheet 1 in column A