Matching cell and copying range - excel

need some assistance here.
Ive got two sheets, one is a yearly report the other is a weekly report. I have a column with employees names entered on each row, and rows with dates from the 1st of jan to 31st of December across the first row (B1 to B366). Each day is a different column. Underneath each date i have a different amounts made per employee (A2 to A12).
On the first sheet I would like to select a specific start date and from that specific date i need to extract 28 days of the data that follows over to the monthly sheet. Im quite new to excel and i cant get it right. If anyone can help that would be appreciated.

Related

Excel, trying to split rent for the number of days in a month, per month for the whole year

So I am trying to calculate rent for each month. The problem I am facing is with the fact that starting date and ending date could be in the middle of a month.
For example:
Rent = 10,000
Starting date = 15/04/2020
Ending date = 10/10/2020
I want my excel Sheet to split accordingly as below:
First sample row of the excel
In my excel sheet, I have different amounts for rent and various start/end dates.
This is what I have tried but failed miserably:
> =$F3/(12*DAY(EOMONTH(H$1,0)))*(IF(MONTH($C3)<=MONTH(H$1),IF(MONTH($C3)=MONTH(H$1),(EOMONTH($D3,0)-$D3),DAY(EOMONTH(H$1,0))),0))
Where F is where the RENT is, H1 is January, C3 is start date, D3 is end date. I'm hoping it to work when I autofill the formula across the whole sheet.
Please help!
#Hooded0ne I tried your formula for all examples in my sheet and there seems to be an issue for some cases:
When start date is 2019 and end date is 2020. This should only show rent till April.
Same case as above, December 2020 is only till the 14th, it should only calculate for the first 15 days
Blockquote
Does this work for you?
=MAX((MIN(EOMONTH(K1,0),$D$3)-MAX(K1,$C$3)+1)/DAY(EOMONTH(K1,0))/12*$F$3,0)
Edit: It should work for multiple years, if you have a specific example, please add it to your original post.

Count the number of Sick Days (Denoted by "S") for each employee

so I have created a leaver tracker for our employees in an excel file.
Background: Each sheet represents each month (ie: Jan, Feb, Mar, etc.) which includes the following information:
** Note: This file is a template I downloaded from Google.
I have created another sheet which outlines the following: Note: these are sample data.
Question: What formula can I use to count the number of Sick Days (S), Annual Leavel (H) and Half Days (HA) separately for all 12 months across all sheets with 1 formula?
If I understand well, you can do this:
Without macro
Write a first sum formula in each sheet (after the last day)
In your Dashboard, write a sum formula from the previous sheet formula
or:
Write a marco to do it

Excel: Reference row indicated by cell

I have a sheet where each row is a month and columns are monthly numbers.
I made a separate sheet for each month where the numbers from each month can be pulled together and added up.
To do this, I've made a template for January and used references like: ='2019'!A8
I went through each month and changed the row number being referenced. ( ='2019'!A8 would change to ='2019'!A9 for the next month.)
Is it possible to pull the number for the reference from a different cell?
Could I have somehow referenced a cell which was just the number and used it for ='2019'!A#` Rather than change all my references by hand?
With a month indicator in each monthly sheet (say in D1 and 03 for March) then with all the monthly sheets grouped together my present understanding of what it is you want should be achieved with:
=INDIRECT("2019!A"&$D1+7)
(Don't forget to ungroup.)
I suppose your data look like:
Month Sales
January 500
February 1000
March 1500
... ...
Moreover somewhere on your monthly sheets I suppose the month will be written in a cell, say A1.
Then you could simply use the same VLOOKUP on all these sheets:
=VLOOKUP(A1;SALES_DATA;2;FALSE)
And if your monthly sheets name contain the month name in some way, you could even do something like:
=VLOOKUP(MID(CELL("filename";A1);FIND("]";CELL("filename";A1))+1;255);SALES_DATA;2;FALSE)
CELL("filename";A1) retrieves the whole sheet path like C:\Users\...\Desktop\[Sales.xlsm]March".

Excel Formula to Compare and Import Certain Information between Sheets

I am working on a new spreadsheet that is an update to a spreadsheet from last year. I'm trying to fill in blank columns for this year's data by importing them from the other sheet. However, the order and information has changed from last year and I'm looking for a way to fill the columns in the correct row by comparing only the information that corresponds to the same information from last year.
I have these columns in both sheets:
2014 Rank - 2013 Rank - Address - City - Zip Code
I need to create a formula that will compare the Address, City, and Zip Codes from both sheets and then insert the 2014 and 2013 Ranks into this year's data in the corresponding rows.
The issue is that the ranking from this year has completely changed the order of the rankings from last year so the formula needs to know to search the entire sheet. Any help would be greatly appreciated!
You can create another column in each sheet, concatening the Address, City and Zip with =CONCAT(A1,CONCAT(A2,A3)) and then use =VLOOKUP() to search on this new column.
More info on VLOOKUP (Theres working examples on how to retrieve more than one column and several other stuff):
https://support.office.com/en-us/article/VLOOKUP-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1

Convert date in Excel to its respective week of the month

Hopeful you can help me out.
I have an Excel spreadsheet open. The spreadsheet has two columns that I need assistance with.
The first column are dates and times that reflect a ticket that opened. The second column reflects dates and times that a ticket closed.
I am needing to correlate all the dates of which every ticket opened and closed to its respective week of the month. So if I have 20 tickets that opened up between the days of 2/22/15 - 2/28/15(all these dates are in the same column fyi...), then I will be needing to somehow correlate these tickets in my spreadsheet to some form of data to be used in a line stack chart.
An exec has laid this on my lap. I don't look useless and I would like a little assistance as to how to perform such a task. Formulas in Excel...Vlookup....or using Pivot Tables....please assist!
convert date in excel to its respective week of the month
in conjunction with the date range example:
=INT((DAY(A1)-1)/7)+1
In column 3 use the =Weeknum(A1, 1) formula to get the week number of the date in column a. The second argument lets you determine what you want for the beginning of the week to be.
In column 4 do the same for column b. This will give you the week ticket opened/closed respectively. Add column 5 to be the difference in weeks which can be used in a pivot table to show the distribution of tickets and weeks to resolve, etc.
Reply back if you have further needs.
Firstly get the week num of the first day of the month -1
A1 = 01/02/2018
B1 = =WEEKNUM(A1)-1
Then calculate the individiual ticket week numbers and take the week number before the first week of the month away from the returned value. You may need to format the cells as numbers as some reason Excel thinks its a date
Open Week = =WEEKNUM(OpenDateCell)-$B$1
Close Week = =WEEKNUM(CloseDateCell)-$B$1
Representative Image:

Resources