# Automatically Bold And Highlight The Current Month’s Total And Month Name

Jan 21, 2010

I have a spreadsheet for monthly supplies. In row 1 is Jan – Dec and in the row 2 below are empty cells where there will be a total for that month’s purchases. I want a conditional format formula to automatically bold and highlight the current month’s total and month name.

Also, when I enter February totals next month and that number is input into February’s total, I want that month and total to bold and highlight BUT I also want the previous month’s bold and highlight to vanish at the same time. Is this possible?

## Finding Current Month Total Sales Using Current Month To Date Sales In Formula / Macro?

Aug 20, 2013

Basically, I'm doing a recorded macro for work where I take an export and manipulate the data to show differences between sales from last year and this year. Also comparing this months projected sales to avg of last 6 months and also against last years this month.

The problem I'm running into is in automating the this month sales for mid-month exports. I can do it individually but I can't find a formula that will do it. Data is in one cell per month, so ex. 130 sales this month so far. I need to have it convert that to projected sales for total month based on what day it currently is.

## Highlight Cell If It Is The Current Month?

Jan 23, 2014

I have a calendar where the months are listed at the top of the columns and the day of the week is listed in the row. The months and dates are all formatted as a date (Jan is 1/1/2014).

______Jan___Feb___Mar...
...
Tue____7_____4_____4
Wed ___8_____5_____5
Thu____9_____6_____6

I just need to highlight the cell with the name of the month if it is the current month. I'd prefer to use conditional formatting.

## Trying To Add Total Hours Worked In Current Month

Jan 22, 2009

I'm trying to figure out what is wrong with this formula. =(SUMIF(Q14:Q4995, "<="&EOMONTH(TODAY(),0),W14:W4995))-(SUMIF(Q14:Q4995, "<="&EOMONTH(TODAY(),-1)+1,W14:W4995)). I've got a cell that adds Total hours worked which pulls from the same column of entered data as the formula above and that cell works. My hours for the month however just shows up as zero. If I try and edit the formula or even just highlight it to copy it and then tab out of the cell this shows up...

1/0/00

If I undo the highlight and tab it will go back to showing zero. I've checked my dates that I entered and they are correct. I'm at a loss as to how to fix this formula.

## Date Range Formula: Beginning Of Month To End Of Month (which Is In The Current Row)

Mar 20, 2009

I have log data in two columns:
Column A: Date/time (at 30 minute intervals)
Column B: Numeric data

On the last row of each month, I’m trying to perform a SumProduct on the two columns and display that result in column C.

The end of the range is determined by the month in the current row.

I’m having difficulty finding the beginning of the range, though. I need to account for both the normal dynamic calendar days & the fact that I may get data starting mid-day and mid-month.

I have this formula, but I’m not sure how to make the first array dynamic or if this is even correct approach.

Manual
=IF(OR(MONTH(A1009)=A4)*(A\$4:A\$65536

## Total Liters Sold Per Month In 24 Month Period

Aug 14, 2012

I have a range of dates in c1:c285. I have a range of liters sold on those days in e1:e285. I want to total the liters sold per month for the 2 year period.

I was trying to use =SUM(IF(MONTH(c1:c285)=1,e1:e18,0))

However this just returns a "value" comment. I think even if this worked it would add the months together for the 2 years so both June figures would be returned as one figure.

## How To Reference The Month Preceding Current Month

Jul 18, 2012

the MONTH(NOW()) Function, as I need it to reference the month preceding the current month.

## Automatically Get All The Dates Of A Month Entering Specific Year And Month

Dec 1, 2012

In a sheet I enter the following:

... in A1 a year (say 2012)
... in A2 a month, formatting as "MMM" (JAN, FEB, MAR etc.)

How to automatically get in column A (say from A3) all the dates of the month entered, formatting as "D/M/YYYY" (e.g. 1/1/2012, 2/1/2012/ 3/1/2012, etc.)?

## Attached Worksheet Automatically Shade Out All The Saturdays & Sundays In Any Given Month Everytime You Change The Month/Year Cell

Jul 19, 2006

Is there a way to make the attached worksheet automatically shade out all the Saturdays & Sundays in any given month everytime you change the Month/Year cell at the top of the worksheet, as example? I've tried using the weekday/Weekend formula, but can't quite get it right.

## Current Month: Column B Equal To The Current Month Adding The Day In Column A

Sep 28, 2009

I have the following data:

column a: column B:
1
7
9
25

I need a formula to make column B equal to the current month adding the day in column A. so that column B equal the following:

column a: column B:
1 09/1/2009
7 09/7/2009
9 09/9/2009
25 09/25/2009

## SUMIF Month & Year: Find Total Cost By Month Only For Year 2009

Dec 17, 2009

In attached sheet, I am trying to find total cost by month only for year 2009. Currently formula I have in Cell c24, is {=SUM(IF(MONTH(B2:B9)=1,D2:D9,0))} But this calculates for all years, not just 2009. How do I modify above formula, so for each month, it shows total cost but only for 2009?

## Financial Model (formula To Equally Distribute Revenue Either Over The Next 1 Month, 2 Month Or 3 Month Period Depending On Size Of The Deal)

Dec 23, 2008

I m trying to write a formula for my financial model. If anyone can take a stab at a solution. I'm trying to write a formula that will equally distribute revenue either over the next 1 month, 2 month or 3 month period depending on size of the deal.

Details:
Sales will fit in 1 of 3 categories. Less than 25k; between 25k & 100k; greater than 100k.

- if under \$25K, recognize in next month (month N+ 1)
- \$25K-100K, recognize in two equal parts in months N + 1 and N + 2
- over \$100K, recognize in three equal parts over 3 months
N + 1, N + 2, N + 3 ...

## Last Day Of Month Bold

Sep 6, 2007

Col. A are dates,I would like to format Cells so the last day of the month is bold useing conditional fomating

## Save To A Folder That Is Current Month And Have It Save To Next Month?

Jul 14, 2014

Here is a macro I am using to save a workbook using 'Save As' .

I have it open a template workbook we use, and then perform a save as, pathed to a specific folder on the desktop. We do this every night just before midnight.

What I haven't been able to figure out is how to have it save to the next month folder (The folders with the name of all the months are already created) on the last day of each current month.

For example. In my code, the final folder in the path is the current month July. On July 31 when I run the macro, I would like it to save it in the folder called August.

Is there a way to code this so it will recognize what the current month is and then at the end of each current month save it in the next month?

[Code] .....

## Total Occurences: Formula That Shows The Total Payments Recieved For A Particular Month For A Particular Product

Jan 7, 2010

I have a report which has a list of customers, each customer has 24 columns which represent the payment history over 24 months. If a payment has been made for that month the date and time (formatted correctly) will be populated in this cell.

Each customer has a product name attached to it so a product can appear several times. I need is a formula that shows the total payments recieved for a particular month for a particular product. For example.

I have managed to create the following flag which works a treat, it picks up a date an account was set up but looks at 1 column.

## Getting Value Of Current Month?

Jun 15, 2014

I am looking for 3 outputs from the attached report. Output report also attached.

1.Under the column "Created_date"(Column I), I am trying to count the number of rows which has current month in column L and result in output report file under "Risks Added" column.

2.Find and count the number of rows which has been modified this month by using "Modified_Date"(Column N) column and result in output report file under "Risks Updated" column.

3.Compare the column "Status_Change_Date" which is updated this month and "status". If that row has the Status column as 'Resolved' and the 'modified date' column has current month, please give the count of those rows in the output report file under "Risks Mitigated" column.

Below is the basic vba code for copying the rows which has this month created date

[Code] .....

Attached Files:
Sample Report.xlsxâ€Ž
Output Report.xlsxâ€Ž

## Last Day Of Current Month

Nov 28, 2008

I don't think there is a built-in function for retrieval of the last day of the month, is there?

Does anyone know how I can retrieve the last day of month using VBA?
So that I can use it like DATE.

## Sum Jan-Dec Columns From Jan Thru Current Month

Aug 30, 2012

I want to compare performance data YoY, updated monthly on a YTD basis.

Sheet1: columns of data as follows
Jan11 Feb11 ... Dec11 Jan12 Feb12 ... Dec12
1000 200 ... 500 800 900 700
...

Sheet2: If we have data through July 2012, I want to show a sum of Jan-Jul11 against Jan-Jul12 on a separate sheet.
Cell1 (updated each month) = July
ColumnA: Jan-(cell1) 2011
ColumnB: Jan-(cell1) 2012

Is there a formula I can use in columns A & B that will reference cell1 and update using the data from sheet1 automatically when cell1 is changed each month?

## Self Calculated For The Current Month

Apr 9, 2008

I am working on spreadsheet that calculates yearly totals. It is set up similar to this:

Jan Feb Mar Apr May ETC. TOTAL
Charge 123 123 123
Goal 223 223 223 223
Cash 111 111 111
% Coll. 50% 50% 50%

The "goal" column is Self calculated for the current month (I.E. it's April, that goal is calculated) The "Charge, Cash, and % Collections" columns won't be fill in for April until its over.
have it add Aprils "Goal" but not add "Mays" and so on... Doing this for the entire year.

## CountIF By Month In Current Year?

Mar 6, 2014

I am a memeber of this forum for more than a year, and currently assign into a new assignment which dealing an excel file everyday. We have one excel file for moniroting of action items generated by the management after the study. As since there were around 2,500+ rows has been generated since in the beginning of 1990's till todate. So I was thinking of instead of getting the result through filter manually, I want to create a formula that will count of how many has been closed this month out of the total numbers of action items.

Is it possible to use the COUNTIF formula to count the number of items in Col C, where Col B contains a date?

2-Jan-13 Closed
2-Jan-13 Closed
5-Jan-13 Closed
19-Feb-13 Closed
16-Feb-13 Closed
22-Feb-13 Closed
2-Mar-14 Closed
5-Mar-14 Closed
8-Mar-14 Closed
10-Mar-14 Closed
15-Mar-14 Closed

## Find The Birthdays In Current Month

Dec 29, 2009

Please tell me how to find the birthdays in the current month.I m uploading the worksheet for reference.I want to know the formula in this context.

## Display Only Weekdays From Current Month

Dec 7, 2012

I have a worksheet that displays all the current months weekdays from a starting date in cell b2 using the weekday formula it works accross a row checking next day is a weekday and adding 1 but since some months have more weekdays than others the few cells that are sometimes not needed are then filled with a weekday from the next month how can I stop this? and only have the current months weekdays

## Dynamic Search For Current Month Within A Row

Mar 28, 2014

I am trying to write a macro but I got a little stuck. Basically on row 6 I have the months listed out (so like Jan Feb Mar etc), and i would like my macro to dynamically search the the cell of current month and select it.

I know the cell formula for current month (ie. "Mar") is =TEXT(TODAY(),"MMM"), but is there a way to incorporate it into a search command in macro, or do I have to insert the formula into another cell and ask the search function to search for the text value in such "dummy cell"?

Another thing to note is, I do have more of "Mar"s scattered around the sheet, but if I limit my search area to row 6 there is only one, and that's the one I need to select.

## Conditional Format Of Current Month?

Oct 15, 2012

i'm using the following three formulas to perform conditional formatting on cell B when cell A contains a date. Each condition depicts a cell colour depending on the following:

Within The Current Month
=datevalue(day(today())&"/"&month(\$q\$3)&"/"&year(\$q\$3))=(today())

Prior To The Current Month
=datevalue(day(today())&"/"&month(\$q\$3)&"/"&year(\$q\$3))(today())

It took me so time to put this together, but I've one other condition which I need to add to the above which I'm having difficulty in solving.

In addition to setting the cell colour of cell B, i would also like to set a text value.

So if the date is:

Within The Current Month, I would like the cell to say "Act'ls",
Prior To The Current Month, I would like the cell to say "Act'ls", and
Greater Than The Current Month, I would like the cell to say "A'able"

## How To Delete Lists Of Current Month

Mar 2, 2013

I have a list of data done by date that is updated weekly. The data in the list changes but only the current month will have changes but the data goes back for a couple of years. Is there a way to clear only the current month from the list and then bring in the data for the current month to the list. The monthly data is stored in worksheets labeled by the month (January 13, February 13) So what I need with for the active worksheet (Master list) to keep all the entries from previous months, remove anything from the current month, then check the the current month worksheet and import the new data. The data on the month worksheets is in columns A and B, and gets moved to Columns A and B on the Master list.

## Count Only If Matching Current Month

Jan 6, 2007

For a banking spreadsheet to monitor monthly transfers:

COLUMN A - Date of transaction (entered manually)
COLUMN B - Description (transfers entered manually as "T")

If value of cell in COLUMN A is within current month, then Count corresponding cell in COLUMN B when "T"

## Find Value Corresponding To First Date In Current Month

May 27, 2009

i have a table with a row of dates along the top. beneath each date is a value.
the dates and values in these cells changes based on info in other sheets.

i need a way of finding the first date in the current month and returning the corresponding value.

## Highlight Cells Containing Certain Month

Jan 14, 2010

I would like to highlight the rows from Range A1:A200 that contain the month of October. The dates in this range are written as January 1, 2010, February 5, 2009, etc. I guess I just do not understand how to extract parts of a date. I have part of a formula that works if I place the exact full date in the code but I only want to grab the month so that all the October dates are highlighted.

This is what I have:

Range(Range("A1:A200"), Range("A1").End(xlDown)).Select
For Each cell In Selection
If cell = October Then cell.EntireRow.Interior.ColorIndex = 36 'light yellow
Next cell

I would like to do this in vba and not in conditional formatting.

## Populating Current Month Saturdays Dates Vba?

Feb 26, 2014

I have sheet1 want to populate current month all Saturdays dates in range C14 to C18 I am trying for vba or formula.

## Using Month In Calculation ONLY If Current Year Is 2009.

Dec 3, 2008

I'm calculating sick days on an Attendance Report.
- Sick days accumulate at a rate of 1.25 per month.
- Employees will carry-forward unused sick days from 2008.
- The maximum sick days is 30.

In trying to create a formula that will multiple the current month (eg Dec=12) by 1.25, subtract any sick days taken YTD (S16), and add the carry-forward days from 2008 (W16), I noticed one problem with the following formula: