A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
It looks like the numeric columns has some invisible entries in some/all cells. Remove those entries.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm looking for assistance in creating a formula for the following:
How can I get Worksheet 1 to read from Worksheet 2 based on the place names selected from the dropdown menus in Worksheet 1?
Any help you can offer would be appreciated.
| Place A | Place B | 177 |
|---|---|---|
| Place B | Place C | 271 |
| Place C | Place D | 146 |
| Place D | Place E | 275 |
| Place E | Place F | 372 |
| Place F | Place G | 189 |
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Hi,
It looks like the numeric columns has some invisible entries in some/all cells. Remove those entries.
Ok this is what you match
A1=Sheet2!A1:A4445
B1=Shhet2!A1:A4445
the above are the match, formula look what is in A1 and B1 and match it with the row that contain the same combination in Sheet2!, when combination is found it pulls the information from the same row column C that is what Index(sheet2!C1:C4445 does,
what I don't see in the formula you copy are the brackets {}
go to the cell where the formula is, click F2, now the formula is edited, press together CTRL+Shift holding both click on Enter
you can read more on how index match works here
I've copied your formula below (with a slight change to the number of cells which would represent the number of scenarios (i.e. C1:C4445)
What I'm not getting is how this formula is recognizing the Place Name in Column A and the Place Name in Column B from Worksheet 1 with the Place Names from Worksheet #2.
As my diagram from my previous message indicates, there is only one cell with a formula in Worksheet #1....that's all that is required. However, the Place Names in both column A and column B can change.
=INDEX(Sheet2!C1:C4445,MATCH(1,(A1=Sheet2!A1:A4445)*(B1=Sheet2!B1:B4445),0))
Do you see the open brackets in the formula without editing it? { }
if yes, did you change Sheet 2 for your sheet name,
Did you change the range for yours C1:C6 , A1:A6 and B1:B6 all three have to have the same number of rows
formula without editing should looks like
{=INDEX(Sheet2!C1:C6,MATCH(1,(A1=Sheet2!A1:A6)*(B1=Sheet2!B1:B6),0))}
post how your formula looks
here is how it looks like for me
| Place A | Place B | 177 |
|---|---|---|
| Place B | Place C | 271 |
| Place C | Place D | 146 |
| Place D | Place E | 275 |
| Place E | Place F | 372 |
another thing, check column A and B the names match exactly the ones in worksheet2
If the above doesn't work, [please delete any confidential information and upload a sample in onedrive posting the url to be able to look into it