Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Manos
 
Posts: n/a
Default Add formula based on a fixed number

Dear All

I have a sheet where i am trying to set up for expenses
In first column i have the description and then there are 12 columns, one
for each month
In another sheet i am trying to make a consolidation of expenses.
I have in cell A1 the month
There is any possibility to bring in column B the sum of expenses from the
other sheet based on the number of the month?
For example if the month is September (9) to add the column b to j
if month goes to October (10) then to add column from b to k
Any ideas ?
  #2   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi,

If I understand your posting correctly, in a sheet (say Sheet 1) the Row 1
contains "Description" in A1, and month names in B1....M1, and there are
several rows below, containing names for expense categories in Col A (i.e.,
A2, A3, .....) and amounts in the corresponding rows in Col B, Col C,.....Col
M for each row. And in another sheet (say Sheet 2) you want to enter a
month's name (say "Sep") in A1, and want the formulas to return the total
from Jan to that month (e.g., Jan-to-Sep) for each expense category.

Try the following formulas in Sheet 2:
In A2, =Sheet1!A2
In B2, =SUM(Sheet1!$B2:OFFSET(Sheet1!$B2,0,MATCH($A$1,She et1!$B$1:$M$1,0)-1))
Drag the formulas down the rows 3 ..... last row.
It is important that the month name you enter in A1 of Sheet 2 should be
identical to one of the month names in B1...M1 in sheet 1 (i.e., you can not
have 'September' in Sheet 1 and enter "Sep' in Sheet 2).

Regards,
B. R. Ramachandran



"Manos" wrote:

Dear All

I have a sheet where i am trying to set up for expenses
In first column i have the description and then there are 12 columns, one
for each month
In another sheet i am trying to make a consolidation of expenses.
I have in cell A1 the month
There is any possibility to bring in column B the sum of expenses from the
other sheet based on the number of the month?
For example if the month is September (9) to add the column b to j
if month goes to October (10) then to add column from b to k
Any ideas ?

  #3   Report Post  
Manos
 
Posts: n/a
Default

Thank you Ramachandran


Ο χρήστης "B. R.Ramachandran" *γγραψε:

Hi,

If I understand your posting correctly, in a sheet (say Sheet 1) the Row 1
contains "Description" in A1, and month names in B1....M1, and there are
several rows below, containing names for expense categories in Col A (i.e.,
A2, A3, .....) and amounts in the corresponding rows in Col B, Col C,.....Col
M for each row. And in another sheet (say Sheet 2) you want to enter a
month's name (say "Sep") in A1, and want the formulas to return the total
from Jan to that month (e.g., Jan-to-Sep) for each expense category.

Try the following formulas in Sheet 2:
In A2, =Sheet1!A2
In B2, =SUM(Sheet1!$B2:OFFSET(Sheet1!$B2,0,MATCH($A$1,She et1!$B$1:$M$1,0)-1))
Drag the formulas down the rows 3 ..... last row.
It is important that the month name you enter in A1 of Sheet 2 should be
identical to one of the month names in B1...M1 in sheet 1 (i.e., you can not
have 'September' in Sheet 1 and enter "Sep' in Sheet 2).

Regards,
B. R. Ramachandran



"Manos" wrote:

Dear All

I have a sheet where i am trying to set up for expenses
In first column i have the description and then there are 12 columns, one
for each month
In another sheet i am trying to make a consolidation of expenses.
I have in cell A1 the month
There is any possibility to bring in column B the sum of expenses from the
other sheet based on the number of the month?
For example if the month is September (9) to add the column b to j
if month goes to October (10) then to add column from b to k
Any ideas ?

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
Copy a formula down a set number of times Julian Excel Worksheet Functions 1 September 23rd 05 06:43 PM
Creating a certain number of entries based on a number in a cell PPV Excel Worksheet Functions 4 June 16th 05 10:25 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


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