Cell value chosen based on another cell (date) - excel-formula

We have three classification of employees, classification is based on date of hire. Column A
In column C I have the employee date of hire.
I want Column A to automatically change to CI, CII, or CIII based on their tenure.
CI=under 2 years
CII=2-4 years
CII 4 years or more
I played with a few forumlas but could not do it simply (at least not in my mind).

Related

netsuite saved search difference between two columns

I am writing a saved search that shows SKU then monthly qty and $ value. i want to add a 3rd column that shows the difference in value between 1month ago and 2 months ago.
below is the formula however the result adds the two columns together rather than subtracts can anyone helps with what i am missing here.
Formula

Excel spreadsheet with historical data & add more data in future using formulas and functions

I have a spreadsheet with historical data. There are rows and columns, the first couple of columns remain the same throughout the years but as we add new data, a new column must be added.
every year has 4 columns,
domestic
international
total = domestic+ International (this includes the sum formula of two columns)
Total Workforce unit = domestic*$0.52(0.52 is the fixed value which we have to pick from another cell)
The values are for fall, summer and winter and they should be calculated like that
these four columns remain the same every year
I would like to create a drop-down filter that listed the years 2017, 2018, and so on...
if we select 2017 year, then there should be information all 4 columns for fall, summer, and winter would appear with all the formulas in place. and if we select any other year, then it will display information related to that particular.
if we select 2023, then we would be able to add the information manually and save it on the same page and so on.

How to calculate unique ID's in Microsoft Excel?

I have an excel sheet which contains 4 years data of schools. The data set contains school scores. Old schools have data for 3 or 4 years of data while new schools have only 1 or 2 years of data.
I have a column in my data set which represents the unique school ID's. Based on these school ID's I want to generate a column "Occurrence" which represents the number of times each unique id occurred in the data set. I am attaching a picture which shows clearly what I want to have in the occurrence column by using formula.
In G2 use:
=IF(COUNTIF(B$2:B2,B2)=1,COUNTIF(B:B,B2),"")
Drag down.

Apply a multiple to randomly selected months in a set of 12 months of revenue data

I have a set of revenue data for each month in a year in columns:
Month1=$304,161.68 Month2=$264,022.48 Month3=$231,374.13 Month4=$204,817.97 Month5=$183,216.61 Month6=$165,645.15 Month7=$151,351.41 Month8=$139,723.69 Month9=$130,264.49 Month10=$122,569.21 Month11=$116,308.76 Month12=$111,215.50
I also have a value in the same row that tells me how many of months in the year need to be considered "special" months. What I need to do is apply a multiple (also contained in the same row) to to each "special" month.
The determination of which months out of the 12 that are special must be random.
For example, say the "Number of special months" = 3. That means that 3 out of the 12 months of revenue above should have the multiplier applied. The 3 months must be randomly selected from the 12 available months and then each of those selected months must be multiplied by the multiple.
I've looked into Excel Solver, Excel Goal Seek, and Excel arrays but can't seem to figure out a solution.
Your Excel wizardry is greatly appreciated!
Peter
To randomly choose 3 months, you can add a column to generate random numbers using:
=RAND()
then another column to choose the top 3 of those random numbers and apply your mulitplier where needed:
=IF(RANK(C1,$C$1:$C$12)<=3,A1*B1,A1)
I'm assuming here that the dollar values are in column A, the multipliers are in B, and my rand() formula is placed in column C.

Finding pass rate in Excel within a date range

I have a large control sheet in Excel with over 1000+ students on it. I have three columns that I want to use which are (Start of 2 year study period - column 1), (End of 2 year study period - column 2) and (Pass/No Pass - column 3)
When a learner registers with us we will type in the start date of registration in the first column and then +730 for the 2nd column giving us our end date.
In the pass no pass column each learner has to complete units and when they pass this unit I mark it as a pass.
What I want to try and achieve / find out is pass rates either
A. per year or
B. every two years (registration period)
For example if I registered say 200 students between 01/01/2015 and 01/01/2017 I want to know what the code for that would be - if there is any code.
Something like =COUNTIF(C:C,"Yes")/(COUNTA(A:A)-1) would do it where "Yes" means they have passed (if you want, you can change this to "passed" etc.).
The above formula puts the total number of "Yes"'s over the total number of people registered (COUNTA(A:A)-1 counts all cells with an entry and then takes away the header)
Here's what it's look like:
EDIT: Please forget the dates entered in column B - I just entered random dates so these aren't correct but the formula works perfectly regardless.
If you want to do an analysis per year you can use the following helper column D.
Column A: Start date formatted as date (localization doesn't matter)
Column B: =A:A+730
Column D: =YEAR(A:A) (format as standard or number)
G3: =COUNTIFS(D:D,"=2016",C:C,"=Pass")
G4: =COUNTIFS(D:D,"=2016")
If you need a 2 year analysis (eg. 2016+2017) do an analysis for both years and add them up later. Then calculate the rate.

Resources