Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default What is the average month

Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default What is the average month

There may be a better way, but this works.

Ctrl/Shift/Enter this in a cell in column A and it will return the month
which appears the most frequently in column B -- it assumes the months are
entered as text: "Apr" or "Sep" instead of 4/1/2009 or 9/14/2009, etc.
=TEXT(MATCH(MAX(COUNTIF(B1:B63,TEXT(ROW(1:12)&"/2000","mmm"))),COUNTIF(B1:B63,TEXT(ROW(1:12)&"/2000","mmm")),0)&"/2000","mmm")


"Jim" wrote in message
...
Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default What is the average month

You could try this array** formula:

=MODE(IF(ISNUMBER(B2:B100),MONTH(B2:B100)))

**confirm formula using Ctrl+shift+Enter, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jim" wrote:

Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default What is the average month

Bob,

This is a great formula. Thank you. I have faced one issue. Although
August is shown is about 90 lines, July in only four I am getting a return of
January from the formula.

The reason for this, I think, is that there are about 50 lines referring to
another page that are blank (I have a formula in the cell). Is there another
way to write the formula?

Thanks
Jim

"Bob Umlas" wrote:

There may be a better way, but this works.

Ctrl/Shift/Enter this in a cell in column A and it will return the month
which appears the most frequently in column B -- it assumes the months are
entered as text: "Apr" or "Sep" instead of 4/1/2009 or 9/14/2009, etc.
=TEXT(MATCH(MAX(COUNTIF(B1:B63,TEXT(ROW(1:12)&"/2000","mmm"))),COUNTIF(B1:B63,TEXT(ROW(1:12)&"/2000","mmm")),0)&"/2000","mmm")


"Jim" wrote in message
...
Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim




  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default What is the average month

Luke, I did enter as array, but received an error (#N/A)

any other suggestions - and thanks a bunch



"Luke M" wrote:

You could try this array** formula:

=MODE(IF(ISNUMBER(B2:B100),MONTH(B2:B100)))

**confirm formula using Ctrl+shift+Enter, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jim" wrote:

Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim



  #6   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default What is the average month

I should also mention that the formula you are using is refering to a cell
that has an existing formula in it: =IF(G2=0,"",TEXT(G2,"mmmm"))

Does that make a difference?



"Luke M" wrote:

You could try this array** formula:

=MODE(IF(ISNUMBER(B2:B100),MONTH(B2:B100)))

**confirm formula using Ctrl+shift+Enter, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jim" wrote:

Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default What is the average month

Yes, it does make a difference. MODE will not work with text; it wants to
see a number.
--
David Biddulph

"Jim" wrote in message
...
I should also mention that the formula you are using is refering to a cell
that has an existing formula in it: =IF(G2=0,"",TEXT(G2,"mmmm"))

Does that make a difference?



"Luke M" wrote:

You could try this array** formula:

=MODE(IF(ISNUMBER(B2:B100),MONTH(B2:B100)))

**confirm formula using Ctrl+shift+Enter, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jim" wrote:

Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same
but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and
show
the month that appears most in column B and return this month to column
A.

Thanks
Jim



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default What is the average month

Replace the B2:B100 reference (which is text apparently) with G2:G100 (which
is where your dates are really at, it appears).
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jim" wrote:

I should also mention that the formula you are using is refering to a cell
that has an existing formula in it: =IF(G2=0,"",TEXT(G2,"mmmm"))

Does that make a difference?



"Luke M" wrote:

You could try this array** formula:

=MODE(IF(ISNUMBER(B2:B100),MONTH(B2:B100)))

**confirm formula using Ctrl+shift+Enter, not just Enter.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jim" wrote:

Hello,

This is a great forum and I appreciate all the help.

In a worksheet I have a ton of data. However in Column B I have the
transaction month of purchases. For most rows the month is the same but
there are times where it reflects the month prior.

In column A I would like to show the billing month for the line. The
question is how do I write a formula to look at the entire column and show
the month that appears most in column B and return this month to column A.

Thanks
Jim

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
Average of time each month Kelway07 Excel Worksheet Functions 3 July 24th 09 08:53 PM
Help Please: Need an Average for 16 Weeks according to Month drober Excel Worksheet Functions 2 June 9th 09 02:48 AM
Average Less a Month Jani Excel Discussion (Misc queries) 4 September 26th 07 09:04 PM
12 Month Average Dewayne Excel Worksheet Functions 10 November 6th 06 09:18 PM
=AVERAGE(IF(INT(MONTH(C:C)+2/3)=4 kathi Excel Worksheet Functions 5 February 28th 06 10:55 AM


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