LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Multiple Table Query

It's always useful to post the formula you are using, together with
the cell references, sheet names, table names etc. However, I think
you can use something like:

MIN(5,number_of_years)+2

as the column to return data from in your VLOOKUP formula.

Hope this helps.

Pete

On Aug 16, 11:08*pm, MythicZohar wrote:
OK, its been awhile since I've posted but this group is the best..
Here's my problem:

I am using data validation that is connected to the 2 categories below

Widows Benefits
Widows Benefits with Survivors

Each category will be connected to 2 tables for a total of 4 tables. I
have used VLOOKUP for a similar problem. I named the tables included
the names in the formula..everything worked great.. but with these
tables the return values are in more that 1 column.. Here's what I
mean..

Based on the age of the widow & year since death and the *table will
return a value( I have the age calculated in the spreadsheet)

The age of the widow is represented by the 1st column to the left..
and then depending on the number of years since the death of the
spouse for 1,2,3, 4 yrs a value is returned. the tricky part is if the
death of the spouse is 5yrs or greater, then the age is referenced in
the last column and the factor to be used is to the left of the last
column.. I have considered OFFSET, but not sure how that would work

Can someone help me???

Age of Widow on Date of Death of IW * * YEARS SINCE IW’s * *DOD
CurrentAge of Widow if DOD of IW/= * *5 * * *Years

* * * * CURR YEAR * * * + 1 YEAR * * * *+ 2 YEARS * * * + 3 YEARS * * * + 4 YEARS * * * + 5 YEARS
16 * * *0.569 * * * * * * * * * * * *0.554 * * *0.507 * 0.478 * * * * * 0.454 * 0.431
21
17 * * *0.565 * * * * * * * * * 0.549 * 0.5 * * * * * * 0.471 * * * * * 0.446 * 0.422
22
18 * * *0.56 * * * * * * * * * * * * * 0.543 * * * * * *0.494 * * * 0.463
* * * * * * * * 0.437 * 0.413 * 23
19 * * *0.554 * * * * * * * * * 0.537 * 0.486 * 0.455 * * * * * 0.428 * 0.402 * 24
20 * * *0.548 * * * * * * * * * 0.531 * 0.478 * 0.446 * * * * * *0.418 *0.391 * 25


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Table Query MythicZohar New Users to Excel 1 August 18th 09 01:08 AM
Pivot table and MS Query linglc Excel Discussion (Misc queries) 0 September 3rd 08 10:29 AM
a query for pivot table Arvind Excel Discussion (Misc queries) 1 January 25th 08 02:32 PM
Pivot Table Query Lee White Excel Discussion (Misc queries) 1 January 30th 07 01:07 PM
Pivot Table Query sgriff Excel Discussion (Misc queries) 0 July 21st 06 08:08 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"