Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JB JB is offline
external usenet poster
 
Posts: 115
Default VLookup Last Entry

Hi, I am trying to use VLookup to find the last date that a value was entered
in. I then use this date in a different location to calculate MTD Goals. My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data available.
Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default VLookup Last Entry

jb
You may try
=SUMPRODUCT(MAX((A4:A33)*(B4:B33<0)))
where A4:A33 contain the dates and B4:B33, the values for the dates. The
formula has to be entered as an array formula i.e., by pressing
Ctrl+Shift+Enter and not merely by Enter. Excel will automatically place
curly brackets around the function. (Curly brackets should not be put by you)

Best Wishes

Balan

"jb" wrote:

Hi, I am trying to use VLookup to find the last date that a value was entered
in. I then use this date in a different location to calculate MTD Goals. My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data available.
Thanks for any help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default VLookup Last Entry

You might as well use the shorter SUM if you are going to array enter the
formula but since it is SUMPRODUCT you don't need to array enter it. Another
way using array entering would be

=MAX(IF(B4:B33<"",A4:A33))

or

=MAX((B4:B33<"")*(A4:A33))


--

Regards,

Peo Sjoblom






"Balan" wrote in message
...
jb
You may try
=SUMPRODUCT(MAX((A4:A33)*(B4:B33<0)))
where A4:A33 contain the dates and B4:B33, the values for the dates. The
formula has to be entered as an array formula i.e., by pressing
Ctrl+Shift+Enter and not merely by Enter. Excel will automatically place
curly brackets around the function. (Curly brackets should not be put by
you)

Best Wishes

Balan

"jb" wrote:

Hi, I am trying to use VLookup to find the last date that a value was
entered
in. I then use this date in a different location to calculate MTD Goals.
My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data
available.
Thanks for any help.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default VLookup Last Entry

Mr.Peo and Mr.Valko
Many thanks for telling me that sumproduct need not be entered as an array
formula. A learner myself I shouldn't have ventured to make the suggestion
without verifying whether it works normally.

Balan

"Peo Sjoblom" wrote:

You might as well use the shorter SUM if you are going to array enter the
formula but since it is SUMPRODUCT you don't need to array enter it. Another
way using array entering would be

=MAX(IF(B4:B33<"",A4:A33))

or

=MAX((B4:B33<"")*(A4:A33))


--

Regards,

Peo Sjoblom






"Balan" wrote in message
...
jb
You may try
=SUMPRODUCT(MAX((A4:A33)*(B4:B33<0)))
where A4:A33 contain the dates and B4:B33, the values for the dates. The
formula has to be entered as an array formula i.e., by pressing
Ctrl+Shift+Enter and not merely by Enter. Excel will automatically place
curly brackets around the function. (Curly brackets should not be put by
you)

Best Wishes

Balan

"jb" wrote:

Hi, I am trying to use VLookup to find the last date that a value was
entered
in. I then use this date in a different location to calculate MTD Goals.
My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data
available.
Thanks for any help.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLookup Last Entry

=SUMPRODUCT(MAX((A4:A33)*(B4:B33<0)))
The formula has to be entered as an array formula


Not necessary to array enter in this case. Normally entered will work.

--
Biff
Microsoft Excel MVP


"Balan" wrote in message
...
jb
You may try
=SUMPRODUCT(MAX((A4:A33)*(B4:B33<0)))
where A4:A33 contain the dates and B4:B33, the values for the dates. The
formula has to be entered as an array formula i.e., by pressing
Ctrl+Shift+Enter and not merely by Enter. Excel will automatically place
curly brackets around the function. (Curly brackets should not be put by
you)

Best Wishes

Balan

"jb" wrote:

Hi, I am trying to use VLookup to find the last date that a value was
entered
in. I then use this date in a different location to calculate MTD Goals.
My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data
available.
Thanks for any help.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLookup Last Entry

Here's another one:

=LOOKUP(1E10,B2:B10,A2:A10)

Format as DATE

--
Biff
Microsoft Excel MVP


"jb" wrote in message
...
Hi, I am trying to use VLookup to find the last date that a value was
entered
in. I then use this date in a different location to calculate MTD Goals.
My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data
available.
Thanks for any help.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JB JB is offline
external usenet poster
 
Posts: 115
Default VLookup Last Entry

Thank you all for your quick responses. Can't wait to get to work tomorrow
and try them out.

"T. Valko" wrote:

Here's another one:

=LOOKUP(1E10,B2:B10,A2:A10)

Format as DATE

--
Biff
Microsoft Excel MVP


"jb" wrote in message
...
Hi, I am trying to use VLookup to find the last date that a value was
entered
in. I then use this date in a different location to calculate MTD Goals.
My
spreadsheet looks like the following:

Date Total
9/1 $5312.44
9/2 $3419.67
9/3 $1619.17
9/4
9/5
9/6
9/7
to 9/30

This a standard format that is submitted to me with the data. So I would
like to be able to return the date of 9/3 since it is the last day with a
value. Any help would be greatly appreciated as I would then be able to
automate my report without have to enter in the last date of data
available.
Thanks for any help.




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
VLOOKUP-common look up entry with multiple results CrimsonPlague29 Excel Worksheet Functions 3 August 11th 07 06:34 PM
Cell Entry That Locks Selected Cells From Any Data Entry. ron Excel Worksheet Functions 5 February 16th 07 09:52 PM
Restricting entry in B1 on the basis of entry in A1 Stilla Excel Worksheet Functions 7 December 3rd 05 09:17 PM
Restricting entry in B1 on the basis of entry in A1 Biff Excel Worksheet Functions 0 December 3rd 05 03:41 AM
How do i use vlookup to find more than 1 entry Shaum Excel Worksheet Functions 3 March 18th 05 04:49 PM


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