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.

[TABLE="width: 89"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Sep-16[/TD]
[/TR]
[TR]
[TD]Oct-16


[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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