LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default What am I doing wrong

Oops...Sorry ...i would have been in another world while replying earlier..

Below mentioned is one way to retrieve the last value from AF for the
matching valuue in Col A.

'array formula
=INDIRECT(ADDRESS(MAX(IF(Employee1!$A$5:$A$32=A5,R OW(Employee1!$A$5:$A$32))),32))

If this post helps click Yes
---------------
Jacob Skaria


"aussiegirlone" wrote:

Im sure I can count the number of columns and it is 32, however I copied your
formula and it returns 0 so I change 28 to 32 and it returned the first sum
instead of the last which is the total.
6
6
4
5
21

I have tried this code but the problem is it adds up all the sums including
the total so I get double the total e.g 42 should be 21

=SUM(Employee1!AF:AF)


"Jacob Skaria" wrote:

If you review the function..

=VLOOKUP(lookup_value,table_array,col_index_num,ra nge_lookup)

The col_index_num is the column number within the table_array. Here there
are only 28 columns in the table array $A$5:$AF$32. If you are looking to
retrieve the last column of the above array it should be 28 instead of 32.

=VLOOKUP(A5,Employee1!$A$5:$AF$32,28,FALSE)



If this post helps click Yes
---------------
Jacob Skaria


"aussiegirlone" wrote:

vLookup Problem never ceases
Dear someone
Im having a problem with a vlookup formula, with (last cell/row always
varying) what do I do to copy the last cell with data and paste it to another
sheet.
This formula below finds the first sum not the last.
Or Is there another way to copy last cell with data and paste to another
sheet?

=IF(ISNA(VLOOKUP(A5,Employee1!$A$5:$AF$32,32,FALSE )),"",VLOOKUP(A5,Employee1!$A$5:$AF$32,32,FALSE))



 
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
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
Any wrong with this? Jo[_2_] Excel Discussion (Misc queries) 1 August 2nd 07 09:48 PM
i did something wrong Roy Excel Discussion (Misc queries) 3 October 9th 06 10:45 PM
Min Max What's Wrong? shep Excel Worksheet Functions 4 October 4th 06 09:46 PM
What am I doing wrong? Jeff Excel Discussion (Misc queries) 6 March 6th 05 03:01 AM


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