#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default LOOKUP Function

D1:AJ1 have the years 2006:2038. C2:C13 have the months JAN:DEC. D14:AJ14
total the columns D2:D13, E2:E13 etc.... The total in AH14 which is 0.0 for
the year 2010 is 0.0 as we have not entered into that year as of yet. The
same for the rest of the row up to AJ14. I am looking for a formula that will
enter in cell B35 the total accumulated hours of just the current year from
D14:AJ14. I tried =LOOKUP(99^99,D14:AJ14) but naturally it is going to enter
0.0 from cell AJ14. How can I get it to read the current yearly hours from
Dec 2009 in cell G14?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default LOOKUP Function

Hi,

Possibly this

=LOOKUP(2,1/(D14:AJ140),D14:AJ14)

Mike

"Loadmaster" wrote:

D1:AJ1 have the years 2006:2038. C2:C13 have the months JAN:DEC. D14:AJ14
total the columns D2:D13, E2:E13 etc.... The total in AH14 which is 0.0 for
the year 2010 is 0.0 as we have not entered into that year as of yet. The
same for the rest of the row up to AJ14. I am looking for a formula that will
enter in cell B35 the total accumulated hours of just the current year from
D14:AJ14. I tried =LOOKUP(99^99,D14:AJ14) but naturally it is going to enter
0.0 from cell AJ14. How can I get it to read the current yearly hours from
Dec 2009 in cell G14?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default LOOKUP Function

Hi,

It looks to me like you should use

=INDEX(D14:AJ14,,MATCH(YEAR(NOW()),D1:AJ1,))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Loadmaster" wrote:

D1:AJ1 have the years 2006:2038. C2:C13 have the months JAN:DEC. D14:AJ14
total the columns D2:D13, E2:E13 etc.... The total in AH14 which is 0.0 for
the year 2010 is 0.0 as we have not entered into that year as of yet. The
same for the rest of the row up to AJ14. I am looking for a formula that will
enter in cell B35 the total accumulated hours of just the current year from
D14:AJ14. I tried =LOOKUP(99^99,D14:AJ14) but naturally it is going to enter
0.0 from cell AJ14. How can I get it to read the current yearly hours from
Dec 2009 in cell G14?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default LOOKUP Function

Thank-you it does work.

"Mike H" wrote:

Hi,

Possibly this

=LOOKUP(2,1/(D14:AJ140),D14:AJ14)

Mike

"Loadmaster" wrote:

D1:AJ1 have the years 2006:2038. C2:C13 have the months JAN:DEC. D14:AJ14
total the columns D2:D13, E2:E13 etc.... The total in AH14 which is 0.0 for
the year 2010 is 0.0 as we have not entered into that year as of yet. The
same for the rest of the row up to AJ14. I am looking for a formula that will
enter in cell B35 the total accumulated hours of just the current year from
D14:AJ14. I tried =LOOKUP(99^99,D14:AJ14) but naturally it is going to enter
0.0 from cell AJ14. How can I get it to read the current yearly hours from
Dec 2009 in cell G14?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default LOOKUP Function

Hi,

The LOOKUP version would be

=LOOKUP(YEAR(NOW()),D1:AJ1,D14:AJ14)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Loadmaster" wrote:

D1:AJ1 have the years 2006:2038. C2:C13 have the months JAN:DEC. D14:AJ14
total the columns D2:D13, E2:E13 etc.... The total in AH14 which is 0.0 for
the year 2010 is 0.0 as we have not entered into that year as of yet. The
same for the rest of the row up to AJ14. I am looking for a formula that will
enter in cell B35 the total accumulated hours of just the current year from
D14:AJ14. I tried =LOOKUP(99^99,D14:AJ14) but naturally it is going to enter
0.0 from cell AJ14. How can I get it to read the current yearly hours from
Dec 2009 in cell G14?

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
Combining Lookup function and Sum function Cameron Excel Worksheet Functions 2 July 13th 09 02:19 AM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
how to combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 07:04 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"