ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using Table Column Data in MATCH (https://www.excelbanter.com/excel-worksheet-functions/195203-using-table-column-data-match.html)

mns

Using Table Column Data in MATCH
 
I have a table which was created using external data (SQL Server) with
Microsoft Query. The table has two columns: Project numbers, and time codes
assigned to the projects.

On a separate worksheet, I am tring to create a data validation list which
looks up a project number typed in a cell and populates the list with project
time codes. I'm and using this formula:
OFFSET(ProjectStart,MATCH(D3,ProjectColumn,0)-1,1,COUNTIF(ProjectColumn,D3)

However, I get #n/a. So I broke the formula down and found that (at least)
the MATCH(D3,ProjectColumn,0) is returning a #n/a. I tried this within a
single cell to test the formula.

I have used table columns as lookup arrays before without trouble. I was
wondering if the issue is with the Query (which I used so the data could be
pre-sorted ascending), or the table, or ??

Any help would be appreciated.

ryguy7272

Using Table Column Data in MATCH
 
Sounds weird. Maybe your numbers are stored as text:
http://www.dailydoseofexcel.com/arch...tored-as-text/

Take a look at this too:
http://www.contextures.com/xlFunctions03.html


Regards,
Ryan---

--
RyGuy


"MNS" wrote:

I have a table which was created using external data (SQL Server) with
Microsoft Query. The table has two columns: Project numbers, and time codes
assigned to the projects.

On a separate worksheet, I am tring to create a data validation list which
looks up a project number typed in a cell and populates the list with project
time codes. I'm and using this formula:
OFFSET(ProjectStart,MATCH(D3,ProjectColumn,0)-1,1,COUNTIF(ProjectColumn,D3)

However, I get #n/a. So I broke the formula down and found that (at least)
the MATCH(D3,ProjectColumn,0) is returning a #n/a. I tried this within a
single cell to test the formula.

I have used table columns as lookup arrays before without trouble. I was
wondering if the issue is with the Query (which I used so the data could be
pre-sorted ascending), or the table, or ??

Any help would be appreciated.



All times are GMT +1. The time now is 04:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com