Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default If statement with generic value

I have a spreadsheet for recording Board members' payments. All 4 quarters
are on one sheet with with subtotals after each quarter (cells C13, C18, C23
& C28) and a "Total Due This Quarter" in cell C31. What I want to happen in
C31 is only give the total for the current quarter. Is there a way to do
that even when I don't have a specific value in the subtotal cells?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If statement with generic value

Maybe this:

=CHOOSE(CEILING(MONTH(NOW())/3,1),C13,C18,C23,C28)

--
Biff
Microsoft Excel MVP


"Blessedx3" wrote in message
...
I have a spreadsheet for recording Board members' payments. All 4 quarters
are on one sheet with with subtotals after each quarter (cells C13, C18,
C23
& C28) and a "Total Due This Quarter" in cell C31. What I want to happen
in
C31 is only give the total for the current quarter. Is there a way to do
that even when I don't have a specific value in the subtotal cells?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default If statement with generic value

That won't work. I don't have a specific month listed, just the total for
the quarter - "Total First Quarter" in C13, "Total Second Quarter" in C18,
etc.

"T. Valko" wrote:

Maybe this:

=CHOOSE(CEILING(MONTH(NOW())/3,1),C13,C18,C23,C28)

--
Biff
Microsoft Excel MVP


"Blessedx3" wrote in message
...
I have a spreadsheet for recording Board members' payments. All 4 quarters
are on one sheet with with subtotals after each quarter (cells C13, C18,
C23
& C28) and a "Total Due This Quarter" in cell C31. What I want to happen
in
C31 is only give the total for the current quarter. Is there a way to do
that even when I don't have a specific value in the subtotal cells?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default If statement with generic value

"T. Valko" wrote...
Maybe this:

=CHOOSE(CEILING(MONTH(NOW())/3,1),C13,C18,C23,C28)

....

Save a function call CEILING(MONTH(NOW())/3,1) - (MONTH(NOW())+2)/3
since CHOOSE truncates its 1st argument to integers.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default If statement with generic value

Did you try the code before ruling it out? The CEILING(MONTH(NOW())/3,1)
part of the formula returns the current quarter and has nothing to do with
months on your worksheet.

--
Rick (MVP - Excel)


"Blessedx3" wrote in message
...
That won't work. I don't have a specific month listed, just the total for
the quarter - "Total First Quarter" in C13, "Total Second Quarter" in C18,
etc.

"T. Valko" wrote:

Maybe this:

=CHOOSE(CEILING(MONTH(NOW())/3,1),C13,C18,C23,C28)

--
Biff
Microsoft Excel MVP


"Blessedx3" wrote in message
...
I have a spreadsheet for recording Board members' payments. All 4
quarters
are on one sheet with with subtotals after each quarter (cells C13,
C18,
C23
& C28) and a "Total Due This Quarter" in cell C31. What I want to
happen
in
C31 is only give the total for the current quarter. Is there a way to
do
that even when I don't have a specific value in the subtotal cells?







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If statement with generic value

That calculates the (calendar) quarter number based on TODAY'S date and
returns the value from one of 4 cells based on the quarter number.

If that isn't what you wanted then I don't understand.

--
Biff
Microsoft Excel MVP


"Blessedx3" wrote in message
...
That won't work. I don't have a specific month listed, just the total for
the quarter - "Total First Quarter" in C13, "Total Second Quarter" in C18,
etc.

"T. Valko" wrote:

Maybe this:

=CHOOSE(CEILING(MONTH(NOW())/3,1),C13,C18,C23,C28)

--
Biff
Microsoft Excel MVP


"Blessedx3" wrote in message
...
I have a spreadsheet for recording Board members' payments. All 4
quarters
are on one sheet with with subtotals after each quarter (cells C13,
C18,
C23
& C28) and a "Total Due This Quarter" in cell C31. What I want to
happen
in
C31 is only give the total for the current quarter. Is there a way to
do
that even when I don't have a specific value in the subtotal cells?






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
Generic Macro that can rows of zeroes Daniel Excel Discussion (Misc queries) 0 August 7th 08 02:09 PM
Generic Worksheet Names Tendresse Excel Discussion (Misc queries) 2 July 9th 08 10:33 PM
Generic reference in a Macro Harry's GMail World Excel Discussion (Misc queries) 2 April 17th 07 11:07 PM
HOW TO RETRIVE LAST NAME USING EXCEL, IT SHOULD BE GENERIC zomex Excel Worksheet Functions 5 November 29th 05 03:36 PM
Creation of a Generic Macro Sondra Excel Worksheet Functions 1 September 13th 05 10:40 PM


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