Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum multiple cells based on vlookup

For the purposes of the formula, I've got 2 columns on a sheet called "Mode".
Column A contains period numbers and column B contains passenger figures.
I've got a separate sheet which tracks the number of passengers depending on
the current period using a vlookup function as below:

=VLOOKUP($M$2,Mode!$A$2:$B$27,2)

This works fine when I'm only looking at 1 period. However, I also need to
calculate the cumulative totals (13 periods per year) - is it possible to
have the vlookup find the current period and then sum a number of rows above
this? To make it even more tricky, the number of cells to sum will change
along with the cumulative total (i.e. in period 2 there'll only be two
periods to count, in period 10 there'll be 10!).

Fingers crossed!
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
Using a function to count cells based on multiple criteria Rae Excel Worksheet Functions 1 February 22nd 08 09:34 PM
How to extract multiple cells based on one value Extrer datos en excel Excel Worksheet Functions 0 April 12th 06 07:17 PM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM
Can VLOOKUP return multiple answers based on several identical lo. jddtct Excel Worksheet Functions 3 January 11th 05 07:03 AM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


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