Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default adding cells upto and including a specified cell

Hi

Im trying to work out what formula i can use to sum the figures in row 4
upto and including the specified month in cell b1 and display the result in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find b1 in
row 3 but once i have established that part i cant work out the formula to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default adding cells upto and including a specified cell

=SUM(OFFSET(A4,0,0,1,MATCH($B$1,3:3,0)))
Regards,
Stefi


€˛Colin€¯ ezt Ć*rta:

Hi

Im trying to work out what formula i can use to sum the figures in row 4
upto and including the specified month in cell b1 and display the result in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find b1 in
row 3 but once i have established that part i cant work out the formula to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default adding cells upto and including a specified cell

=SUM(A4:INDEX(4:4,MATCH(B1,3:3,0)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Colin" wrote in message
...
Hi

Im trying to work out what formula i can use to sum the figures in row 4
upto and including the specified month in cell b1 and display the result
in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find b1
in
row 3 but once i have established that part i cant work out the formula to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default adding cells upto and including a specified cell

Hi Stefi

Thanks heaps for the reply.

That has solved half of my problem. My next problem is the data in the
example i created what if rows 3 and 4 are in sheet2 and rows 1 and 6 are in
sheet1. can i use the formula you provided to reference different sheets.

I tried something similar to the following but it didnt seem to want to sum
data in a seperate sheet.

=SUM(OFFSET(sheet2!A4,0,0,1,MATCH(sheet1!$B$1,shee t2!A3:sheet2!F3,0)))

--
Regards
Colin



"Stefi" wrote:

=SUM(OFFSET(A4,0,0,1,MATCH($B$1,3:3,0)))
Regards,
Stefi


€˛Colin€¯ ezt Ć*rta:

Hi

Im trying to work out what formula i can use to sum the figures in row 4
upto and including the specified month in cell b1 and display the result in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find b1 in
row 3 but once i have established that part i cant work out the formula to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default adding cells upto and including a specified cell

Hi Bob

Thanks for your reply

How would i change your formula if the data in rows 1 and 6 were in sheet1
and rows 3 and 4 were in sheet2. i had a play around and i couldnt get the
formula to sum data that was in a different sheet.
--
Regards
Colin



"Bob Phillips" wrote:

=SUM(A4:INDEX(4:4,MATCH(B1,3:3,0)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Colin" wrote in message
...
Hi

Im trying to work out what formula i can use to sum the figures in row 4
upto and including the specified month in cell b1 and display the result
in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find b1
in
row 3 but once i have established that part i cant work out the formula to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default adding cells upto and including a specified cell

=SUM(OFFSET(Sheet2!A4,0,0,1,MATCH($B$1,Sheet2!3:3, 0)))
Why don't you ask your whole question at once?
Regards,
Stefi


€˛Colin€¯ ezt Ć*rta:

Hi Stefi

Thanks heaps for the reply.

That has solved half of my problem. My next problem is the data in the
example i created what if rows 3 and 4 are in sheet2 and rows 1 and 6 are in
sheet1. can i use the formula you provided to reference different sheets.

I tried something similar to the following but it didnt seem to want to sum
data in a seperate sheet.

=SUM(OFFSET(sheet2!A4,0,0,1,MATCH(sheet1!$B$1,shee t2!A3:sheet2!F3,0)))

--
Regards
Colin



"Stefi" wrote:

=SUM(OFFSET(A4,0,0,1,MATCH($B$1,3:3,0)))
Regards,
Stefi


€˛Colin€¯ ezt Ć*rta:

Hi

Im trying to work out what formula i can use to sum the figures in row 4
upto and including the specified month in cell b1 and display the result in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find b1 in
row 3 but once i have established that part i cant work out the formula to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default adding cells upto and including a specified cell

=SUM(Sheet2!A4:INDEX(Sheet2!4:4,MATCH(B1,Sheet2!3: 3,0)))


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Colin" wrote in message
...
Hi Bob

Thanks for your reply

How would i change your formula if the data in rows 1 and 6 were in sheet1
and rows 3 and 4 were in sheet2. i had a play around and i couldnt get the
formula to sum data that was in a different sheet.
--
Regards
Colin



"Bob Phillips" wrote:

=SUM(A4:INDEX(4:4,MATCH(B1,3:3,0)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Colin" wrote in message
...
Hi

Im trying to work out what formula i can use to sum the figures in row
4
upto and including the specified month in cell b1 and display the
result
in
b6.

a b c d e f
1 month apr-08
2
3 jan-08 feb-08 mar-08 apr-08 may-08 june-08
4 100 100 150 600 680 265
5
6 YTD 950

eg if cell b1=apr-08 then cell b6 should = 950 (sum(a4:d4))
if cell b1=mar-08 then cell b6 should = 350 (sum(a4:c4))

I have assumed i will need to use some sort of LOOKUP formula to find
b1
in
row 3 but once i have established that part i cant work out the formula
to
sum row4 upto the selected cell.

Any help would be gretly appreciated

--
Regards
Colin






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
Summarize Data and automatically update including adding rows Dawnaha Excel Discussion (Misc queries) 4 October 18th 06 10:01 PM
adding cells within a cell DC Charts and Charting in Excel 1 September 20th 06 06:04 PM
Adding 2 Values When 3 Conditions are Met, Including an "OR" annem Excel Worksheet Functions 8 August 2nd 06 02:45 PM
Excel cell show sum upto 500 Exceede delet without if else conditi Yasir U sman Excel Worksheet Functions 2 November 25th 05 03:02 PM
Add cells including text HappyTrucker Excel Discussion (Misc queries) 6 August 15th 05 01:59 AM


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