LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Need Year-To-Date Sum Function with nested Vlookup and offset

Difficult to exactly understand how you have the various tables- from the
sample you gave I presume the months are in numeric format- you could do this
1 Have a cell somewhere with the month up to number you want say in c2
2 Then beside every line have an If statement e.g =IF(B4<=$C$2,"OK","Next
period") to determine if that month number is in range
The a sumif to add all numbers that have OK accross from them e.g
=SUMIF(A4:A10,A11,C4:C8)
where Col A is where ae:a10 is where the If formula is- A11 has OK in text
format & C4:C8 is the nymber range

You can then just directly link the total to you summary sheet- by changeing
c2 your YTD will also change

--
HTH

"Nena G" wrote:

I am using the below function in excel to get a ytd total for items that I
have on a report and it is not working. How do you get YTD totals to work
when you need to be able to select the period number and have the formula sum
the columns for selected rows, the data that I need to use for each YTD
column exists on a separate tab in the workbook (i.e. one tab called TOTAL
DC& HR1, one tab called SC, etc...). I need to sum up their individual
periods based on the current period (i.e. if its period 4 then I need to sum
up periods 1-4 for each tab on this one sheet). Is there a way to do this
with out creating a running YTD tab for each by period tab?
=SUM(OFFSET(VLOOKUP($B6,'TOTAL DC &
HR1'!$B3:$Q3,$C$2+1,FALSE),0,0,1,MONTH($C$1-1)))

My data Is as follows

A B C D E
1 Total Total XHR SC
6 Not used Sales $600 $600 $231
7 Cartons 125 125 58
8 Shipped 358 358 85

 
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
Need help with vlookup nested function mcmilja Excel Discussion (Misc queries) 5 July 11th 08 03:05 PM
use vlookup with offset function liem Excel Worksheet Functions 16 November 19th 07 06:39 AM
Vlookup and offset function? David B Excel Worksheet Functions 5 December 19th 06 06:09 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Nested if, sum & vlookup Function Trying to excel in life but need help Excel Worksheet Functions 4 January 13th 05 07:29 PM


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