How to display number for month

Gonney

New Member
Joined
Jul 28, 2022
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi Team,

The aim of this document is to display the numbers in the Data sheet in the main display sheet but have it broken down into months. I have this as July and August in the example.

The idea is that in the data tab there will be information added and i have an equation to setup and help filter what month it is into the main display tab.

The main display then have that information displayed by using the month as the knock out criteria. I have tried a few different ways but i cant seem to get it to work.

Any support on this would be much appreciated
 

Attachments

  • Number wont display the same.jpg
    Number wont display the same.jpg
    128.9 KB · Views: 10

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
you could use a SUMIFS() based on the dates

you can change the display of the date in c1 , d1 etc - by formatting to just show month


Book6
ABCD
17/1/228/1/22
2person 1300100
3person 2722
4person 34612
Sheet1
Cell Formulas
RangeFormula
C2:D4C2=SUMIFS(data!$C$2:$C$30,data!$A$2:$A$30,$A2,data!$E$2:$E$30,">="&C$1,data!$E$2:$E$30,"<="&EOMONTH(C$1,0))


Book6
ABCDE
1date
2person 13007/1/22
3person 2727/1/22
4person 3467/7/22
5person 11008/14/22
6person 228/15/22
7person 3128/16/22
8
data


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
Test for number to show.xlsx
D
10
Maindisplay


Testing Mini sheet
 
Upvote 0
Hi Thank you for the support. I'm trying to share the base level document here (no privacy info)

Where numbers are to be displayed

Test for number to show.xlsx
ABCDE
1Name BlankJuly total numberAugust total number
2Person 1 30072
3Person 2 150600
4Person 3 270589
5Person 4500230
6
7Expected numbers in cells above
8Numbers to come from Data Tab
9
10
11
Maindisplay


Data Tab - where the information is taken out of.

Test for number to show.xlsx
ABCDEFGHIJ
1PersonBlank#DateMonth
2Person 1 3007/07/20221/07/2022
3Person 2 1507/07/20221/07/2022
4Person 3 2707/07/20221/07/2022
5Person 45007/07/20221/07/2022
6Person 1 727/08/20221/08/2022
7Person 2 6007/08/20221/08/2022
8Person 3 5897/08/20221/08/2022
9Person 42307/08/20221/08/2022
10
11^ Date entered in to E of actual date
12^ F cell equation to get month
13Would be great to use F Cell for knock out criteria
14
15
16
Data
Cell Formulas
RangeFormula
F2:F9F2=DATE(YEAR(Data!E2),MONTH(Data!E2),1)


Is there a chance instead of using C row for dates that we could use the F Cell column to get the month from please?
 
Upvote 0
so by changing C1 to a date 1/7/22
and format as month

then you dont need to have / calculate column F in the data sheet

if you do want that , then still a SUMIFS() will still work with the date hardcoded
=SUMIFS(data!$C$2:$C$9,data!$A$2:$A$9,maindisplay!$A2,data!$F$2:$F$9,"1/7/22")
=SUMIFS(data!$C$2:$C$9,data!$A$2:$A$9,maindisplay!$A2,data!$F$2:$F$9,"1/8/22")

or will need some manipulation of text to extract from the title heading

i have added to a share as well as xl2bb

SUMIF-ETAF.xlsx
ABCDEFGHIJ
1Name BlankJulyAugustJuly total numberAugust total number
2Person 1 300723007230072
3Person 2 150600150600150600
4Person 3 270589270589270589
5Person 4500230500230500230
6
7Expected numbers in cells above
8Numbers to come from Data Tab
maindisplay
Cell Formulas
RangeFormula
C2:D5C2=SUMIFS(data!$C$2:$C$30,data!$A$2:$A$30,$A2,data!$E$2:$E$30,">="&C$1,data!$E$2:$E$30,"<="&EOMONTH(C$1,0))
I2:I5I2=SUMIFS(data!$C$2:$C$9,data!$A$2:$A$9,maindisplay!$A2,data!$F$2:$F$9,"1/7/22")
J2:J5J2=SUMIFS(data!$C$2:$C$9,data!$A$2:$A$9,maindisplay!$A2,data!$F$2:$F$9,"1/8/22")



 
Upvote 0
Solution
Etaf you are an absolute legend! Thank you so much it works perfectly now and I've also learned about Sumif at the same time and a few different ways I can look at using it in the future! <3.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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