ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Lookup Data based on 2 search criteria (https://www.excelbanter.com/excel-worksheet-functions/223685-lookup-data-based-2-search-criteria.html)

JW

Lookup Data based on 2 search criteria
 
Currently Im trying to write a formula with 2 search criteria:
1. Write a month/yr (in a validation list), which searchs for
this in another 12 month table with the dates as titles.

2. After finding the correct month/yr (fx. JAN-09), then I want to look
for a word ("PG"). Then I will be able to look for the correct number in the
cell.

Also, as the month-yr is in a validation list, I want the list to update
automatically
when I chose the month-yr. The words do not have to be flexible.

April-09 January-09 May-09
PG PG1 PG PG1 Pg PG1
3 4 7 2 2 4

If tried several functions+arguments but now I am about to throw in the towel.
HELP

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

T. Valko

Lookup Data based on 2 search criteria
 
Ok, let's sort this out...

You have a data validation drop down list?
The selections are *TRUE Excel dates* in the format mmm-yy?
Your table has column headers that are *TRUE Excel dates* in the format
mmmm-yy?

You want to find the date in the table then find the string "PG" associated
with that date and return the numeric value?

OK, sounds reasonable. All you have to do is tell us, in *GREAT* detail,
where this stuff is!

--
Biff
Microsoft Excel MVP


"JW" wrote in message
...
Currently Im trying to write a formula with 2 search criteria:
1. Write a month/yr (in a validation list), which searchs for
this in another 12 month table with the dates as titles.

2. After finding the correct month/yr (fx. JAN-09), then I want to look
for a word ("PG"). Then I will be able to look for the correct number in
the
cell.

Also, as the month-yr is in a validation list, I want the list to update
automatically
when I chose the month-yr. The words do not have to be flexible.

April-09 January-09 May-09
PG PG1 PG PG1 Pg PG1
3 4 7 2 2 4

If tried several functions+arguments but now I am about to throw in the
towel.
HELP

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions




Herbert Seidenberg

Lookup Data based on 2 search criteria
 
Excel 2007
Lookup in an array with merged cells.
Three search criteria.
Three solutions.
Date and update issue not addressed here.
http://www.mediafire.com/file/kmkmwktmuiy/03_10_09.xlsm


All times are GMT +1. The time now is 02:47 PM.

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