Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Gibraltar13
 
Posts: n/a
Default creating formula to adjust per month

Hi , I have been trying to find a solution for this one for quite some time
now.

Basically, I need to create a formula that automatically adjusts what cells
it sums up depending on what month you enter in to a specific cell.

So if A1=January , then my target cell equal, lets say sum(j6:j6)
while if A1 changes to A1 = February, then my target cell sums up (j6:k6)
(adds one cell to the right)
where J5 and K5 are the list of months.

I think it might be a combination of vlookup and maybe some if functions,
appreciate anyones help if you can crack it for me.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Duke Carey
 
Posts: n/a
Default creating formula to adjust per month

This assumes that A1 contains a date.

=sum(offset(j6,0,0,month(A1),1))

If A1 contains JUST a month name, then

=sum(offset(j6,0,0,month(datevalue(a1&"1, 2006")),1))



"Gibraltar13" wrote:

Hi , I have been trying to find a solution for this one for quite some time
now.

Basically, I need to create a formula that automatically adjusts what cells
it sums up depending on what month you enter in to a specific cell.

So if A1=January , then my target cell equal, lets say sum(j6:j6)
while if A1 changes to A1 = February, then my target cell sums up (j6:k6)
(adds one cell to the right)
where J5 and K5 are the list of months.

I think it might be a combination of vlookup and maybe some if functions,
appreciate anyones help if you can crack it for me.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default creating formula to adjust per month

Target cell formula:
=SUM(OFFSET(J6,,,,MATCH(A1,J5:U5,0)))

HTH
--
AP


"Gibraltar13" a écrit dans le
message de ...
Hi , I have been trying to find a solution for this one for quite some

time
now.

Basically, I need to create a formula that automatically adjusts what

cells
it sums up depending on what month you enter in to a specific cell.

So if A1=January , then my target cell equal, lets say sum(j6:j6)
while if A1 changes to A1 = February, then my target cell sums up (j6:k6)
(adds one cell to the right)
where J5 and K5 are the list of months.

I think it might be a combination of vlookup and maybe some if functions,
appreciate anyones help if you can crack it for me.



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
Formula = Today's date + 1 month jermsalerms Excel Worksheet Functions 5 February 8th 06 09:51 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM
Creating formula for timeline Lynne Excel Discussion (Misc queries) 1 April 13th 05 10:00 AM
Creating Formula using check boxes Anthony Slater Excel Discussion (Misc queries) 3 January 4th 05 03:03 PM


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