Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Richard
 
Posts: n/a
Default lookup? Index? match? formula

I have this formula in cell B17 =DATEDIF(B16,TODAY(),"Y")&" years,
"&DATEDIF(B16,TODAY(),"YM")&" months "&DATEDIF(B16,TODAY(),"MD")&" days" This
gives me the total years of employment. I need to take that info and match it
with column "I" then whatever is in column "J" send that to "A3"
Crude Example: If B17 = whats in column "I5" then send whats in column "J5"
to "A3"
B17 shows the years, months and days but column "I" only shows whole numbers
like 1,2,3,4, etc...can they still match for example: B17 = 7 years, 2 months
5 days, I need that to match with 7 years in column "I"
Thanks in Advance!! Tough one for me!
  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default lookup? Index? match? formula


If column I shows just numbers, e.g. 7 (not "7 years")

In A3

=VLOOKUP(DATEDIF(B16,TODAY(),"Y"),I:J,2,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=515134

  #3   Report Post  
Posted to microsoft.public.excel.misc
Richard
 
Posts: n/a
Default lookup? Index? match? formula

Works Great, can it be modified to show 25 in A3 if B16 is greater than 30.

"daddylonglegs" wrote:


If column I shows just numbers, e.g. 7 (not "7 years")

In A3

=VLOOKUP(DATEDIF(B16,TODAY(),"Y"),I:J,2,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=515134


  #4   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default lookup? Index? match? formula


Isn't B16 a date?, do you mean if DATEDIF(B16,TODAY(),"Y") is bigger
than 30? Possibly

=IF(DATEDIF(B16,TODAY(),"Y")30,25,VLOOKUP(DATEDIF (B16,TODAY(),"Y"),I:J,2,0))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=515134

  #5   Report Post  
Posted to microsoft.public.excel.misc
Richard
 
Posts: n/a
Default lookup? Index? match? formula

Yes, you're right! Thanks so much. It works perfect now!!!

"daddylonglegs" wrote:


Isn't B16 a date?, do you mean if DATEDIF(B16,TODAY(),"Y") is bigger
than 30? Possibly

=IF(DATEDIF(B16,TODAY(),"Y")30,25,VLOOKUP(DATEDIF (B16,TODAY(),"Y"),I:J,2,0))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=515134


Reply
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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Large Index Match Lookup Qaspec Excel Worksheet Functions 3 August 20th 05 01:13 AM
Match & Index Phyllis B. Excel Worksheet Functions 2 November 27th 04 03:26 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 10:36 AM.

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

About Us

"It's about Microsoft Excel"