if formula to differentiate between months

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I need some help with my data with different months across a financial year.

I want to pull out ending month data, so where the date changes from one month to another eg. Sept - Oct - different month so pick the ending value shown in the column, else 0.

The idea is that I want the end of month figures for that month from my daily list of transactions.

The formula that I used is =IF(LEFT(F42,3)<>LEFT(F42,3),K42,0)

When I use this formula between Sept and Oct it shows this as false, meaning its not different. Could you help me place a formula based on the month, where it would not differentiate between days but between month values.

Sep-16
Oct-16



<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Not sure what you are trying to do, the formula you have is checking if F42 doesn't equal itself!
 
Upvote 0
My Apologies, thats true.

=IF(LEFT(F11,3)<>LEFT(F10,3),K11,0)

This is the correct formula.

Even when I use the formula to check with the cell above, it doesn't display the right value.

For eg. for two same month value, it will show them as different.

I see it may be because when I use LEFT, RIGHT or MID functions it reads the date as "numbers" is there a formula which could help read the date as the visible characters / texts.

I want it to differentiate between the visible month name. If different then show the value in the adjacent cell, else 0.

Thank you
 
Upvote 0
Hi,

Assuming Real Date values in your cells, if you Don't need to check the Year also:

=IF(MONTH(F11)<>MONTH(F10),K11,0)
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top