Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JEB JEB is offline
external usenet poster
 
Posts: 40
Default vlookup, indexing, oh my....

Totally lost on this one.

I have a date values in Col I that are fed in from another sheet. These
dates may be typed in by a user in any format, but the critical info the year
and the month.

I have a series of months and years listed in Col A with corresponding info
in Col B that is only pertinent to that info in Col B. (Col B is the average
monthly outdoor temperature).

In another Column (let's call it M), I want to "index/lookup" the month and
year in Col I, match it with the month and year in Col A, and return the
value in Col B.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 457
Default vlookup, indexing, oh my....

How exactly is your data entered in I and A? If you're using numbers (or
numbers with some type of date), this is fairly easy. If you're using true
text like "Jan 2010". Another assumption is that column A is sorted.
Possible ideas:
=LOOKUP(I2,A:B)
=LOOKUP(TEXT(I2,"mm-yyyy"),A:B)
=SUMPRODUCT(--(TEXT(I2,"mmyyyy")=TEXT(A1:A100,"mmyyyy")),B1:B100 )

--
Best Regards,

Luke M
"JEB" wrote in message
...
Totally lost on this one.

I have a date values in Col I that are fed in from another sheet. These
dates may be typed in by a user in any format, but the critical info the
year
and the month.

I have a series of months and years listed in Col A with corresponding
info
in Col B that is only pertinent to that info in Col B. (Col B is the
average
monthly outdoor temperature).

In another Column (let's call it M), I want to "index/lookup" the month
and
year in Col I, match it with the month and year in Col A, and return the
value in Col B.

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JEB JEB is offline
external usenet poster
 
Posts: 40
Default vlookup, indexing, oh my....

Data is entered in I numbers, i think.

Data in A1 is first entered however the user types it in, then A2 is
=DATE(YEAR(D8),MONTH(D8)+1,DAY(D8)) and so forth for each cell below.

but I used =LOOKUP(I2,A:B) and it worked just fine!

Thanks!


"Luke M" wrote:

How exactly is your data entered in I and A? If you're using numbers (or
numbers with some type of date), this is fairly easy. If you're using true
text like "Jan 2010". Another assumption is that column A is sorted.
Possible ideas:
=LOOKUP(I2,A:B)
=LOOKUP(TEXT(I2,"mm-yyyy"),A:B)
=SUMPRODUCT(--(TEXT(I2,"mmyyyy")=TEXT(A1:A100,"mmyyyy")),B1:B100 )

--
Best Regards,

Luke M
"JEB" wrote in message
...
Totally lost on this one.

I have a date values in Col I that are fed in from another sheet. These
dates may be typed in by a user in any format, but the critical info the
year
and the month.

I have a series of months and years listed in Col A with corresponding
info
in Col B that is only pertinent to that info in Col B. (Col B is the
average
monthly outdoor temperature).

In another Column (let's call it M), I want to "index/lookup" the month
and
year in Col I, match it with the month and year in Col A, and return the
value in Col B.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JEB JEB is offline
external usenet poster
 
Posts: 40
Default vlookup, indexing, oh my....

Ok, here's a similar scenario, but slightly different.

This time, I have a date values in Col I that are fed in from another sheet.
These
dates may be typed in by a user in any format, but the critical info this
time is just the month.

I have a series of months listed in Col C with corresponding info
in Col B that is only pertinent to that info in Col D. (Col D is the
historical
monthly outdoor temperature).

This time, in another Column (let's call it N), I want to "index/lookup" the
month Col I, match it with the month in Col C, and return the value in Col D.

Values in Column C can be listed in any format to simply get it to work. It
is just data.
"Luke M" wrote:

How exactly is your data entered in I and A? If you're using numbers (or
numbers with some type of date), this is fairly easy. If you're using true
text like "Jan 2010". Another assumption is that column A is sorted.
Possible ideas:
=LOOKUP(I2,A:B)
=LOOKUP(TEXT(I2,"mm-yyyy"),A:B)
=SUMPRODUCT(--(TEXT(I2,"mmyyyy")=TEXT(A1:A100,"mmyyyy")),B1:B100 )


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JEB JEB is offline
external usenet poster
 
Posts: 40
Default vlookup, indexing, oh my....

Nevermind, I got it to work using the
=SUMPRODUCT(--(TEXT(I2,"mm")=TEXT(A1:A100,"mm")),B1:B100
example!

Thanks!

"JEB" wrote:

Ok, here's a similar scenario, but slightly different.

This time, I have a date values in Col I that are fed in from another sheet.
These
dates may be typed in by a user in any format, but the critical info this
time is just the month.

I have a series of months listed in Col C with corresponding info
in Col B that is only pertinent to that info in Col D. (Col D is the
historical
monthly outdoor temperature).

This time, in another Column (let's call it N), I want to "index/lookup" the
month Col I, match it with the month in Col C, and return the value in Col D.

Values in Column C can be listed in any format to simply get it to work. It
is just data.
"Luke M" wrote:

How exactly is your data entered in I and A? If you're using numbers (or
numbers with some type of date), this is fairly easy. If you're using true
text like "Jan 2010". Another assumption is that column A is sorted.
Possible ideas:
=LOOKUP(I2,A:B)
=LOOKUP(TEXT(I2,"mm-yyyy"),A:B)
=SUMPRODUCT(--(TEXT(I2,"mmyyyy")=TEXT(A1:A100,"mmyyyy")),B1:B100 )




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
Indexing Anto111 Excel Discussion (Misc queries) 1 July 26th 08 08:01 PM
Indexing of Name Charlie Excel Worksheet Functions 1 April 5th 06 01:33 PM
Indexing an Array with VLOOKUP Joe Blow Excel Worksheet Functions 1 March 14th 05 09:23 PM
Vlookup and Indexing in excel CLSCHWIES Excel Worksheet Functions 2 December 4th 04 01:57 AM
Vlookup - indexing Josef.angel Excel Worksheet Functions 7 October 29th 04 08:50 AM


All times are GMT +1. The time now is 03:34 PM.

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"