Question description:
This user has given permission to use the problem statement for this
blog.
Hello :)
I need a formula to do the following
if cells A and B match return values from each row in column C to cells D1 D2 D3 D4
Thank you
Solved by T. L. in 51 mins
This is the chat thread from the real Excelchat help session. It contains no private user
information.
Excelchat Expert
27/09/2018 - 01:02
Hello, I understand that you need a formula that checks if the values of A and B are matching then you want the value in C to be placed in D, right?
Excelchat Expert
27/09/2018 - 01:03
Are you there?
User
27/09/2018 - 01:03
yes however there are multiple values
User
27/09/2018 - 01:03
ill show you
Excelchat Expert
27/09/2018 - 01:03
Alright, please do. While you are showing me, this is a reminder that our policy is 1 question per session so for this session we'll be resolving this particular question. We also currently do not support VBA/Macro solutions.
User
27/09/2018 - 01:06
so i need to match A1 in sheet1 with column A in sheet two and return all of the values from Sheet2 Column B to Column B1, B2,B3, B4 in sheet 1
Excelchat Expert
27/09/2018 - 01:07
There are always 4 Order numbers?
User
27/09/2018 - 01:07
maximum of 4, sometimes less
Excelchat Expert
27/09/2018 - 01:08
Okay, So whatever name is in A1 you want to retrieve all the Order numbers for that name from Sheet2, right?
User
27/09/2018 - 01:08
yers
Excelchat Expert
27/09/2018 - 01:08
Okay, I can help you with this. Just a heads up, the solution to this will be a bit complicated and it would be difficult to adjust it once we are done. If you want you can upload your actual file so I can work on it otherwise, I'll only be able to give you a solution based on your example and you'll have to adopt the solution to your actual file.
User
27/09/2018 - 01:09
okay, however the data in the file is sensitve customer information
Excelchat Expert
27/09/2018 - 01:10
I see. If that's the case then I'll only be able to give you a generic solution. I'll try my best to explain the solution but I can't guarantee the rest.
Excelchat Expert
27/09/2018 - 01:11
You want the Order numbers to be in the same column?
Excelchat Expert
27/09/2018 - 01:11
For instance, like that?
User
27/09/2018 - 01:11
yes! exactly like that
Excelchat Expert
27/09/2018 - 01:12
Okay, I'll be working on this locally on my desktop. I will be using an array formula to solve this. Please give me a few minutes.
User
27/09/2018 - 01:12
no problem thank you very mcuh
Excelchat Expert
27/09/2018 - 01:16
Please download this file.
[Uploaded an Excel file]
Excelchat Expert
27/09/2018 - 01:17
Open the file once you have downloaded it.
User
27/09/2018 - 01:17
got it
Excelchat Expert
27/09/2018 - 01:17
Okay, I've added several other names in Sheet2 just to test it out.
Excelchat Expert
27/09/2018 - 01:17
You can try replacing the name in A1 to see that it works.
User
27/09/2018 - 01:18
how would i increase the amount of cells to return to in sheet 1 if needed?
Excelchat Expert
27/09/2018 - 01:19
You will just have to drag the formula down.
User
27/09/2018 - 01:19
gotcha!
Excelchat Expert
27/09/2018 - 01:19
I was under the impression that the max number of Order numbers is 4 so I made it to 4.
Excelchat Expert
27/09/2018 - 01:19
Now if you notice the formula, it will only be monitoring the first 100 rows of Sheet2.
User
27/09/2018 - 01:19
4 is fine :)
User
27/09/2018 - 01:20
am i able to change the faulse value from 0 to nothing?
Excelchat Expert
27/09/2018 - 01:20
If you will have more data in Sheet 2, you will have to adjust the formula and replace 100 with 250 or something.
User
27/09/2018 - 01:20
false*
Excelchat Expert
27/09/2018 - 01:20
The 0 is because you have a john smith with empty in your Sheet2.
User
27/09/2018 - 01:21
is it possible to display nothing instead of 0 if sheet 2 is blank?
Excelchat Expert
27/09/2018 - 01:21
We are running out of time.
Excelchat Expert
27/09/2018 - 01:21
You won't be able to reply here but you can reply in the sheet to the right.
This is the output file from the real Excelchat help session:
This is an example of the expert help you can get. It contains no private user
information.