I have got a spreadsheet with a database of people and all their details, Surname (E), Name (F), Gender (L), Date of Birth (M), Age (O), etc...
So I have a demographics sheet that I calculate ages, gender etc and would like to do the following 2 tables.
1. Working out ages between 2 specified ages that I input into set cells. E.g. I want all people between the ages of 13 and 18 years old (So i put 13 into cell A13 and 18 into B13. My formula will then sit in C13 and will Also count those ages. I want to do this so to be able to change the ages if needed
2. Working out Surnames that sit between an alphabetic range. So as I did with ages I can have "A" into A51 and "D" in B51 and it will give me all the surnames that start with those letters in a range between A and D (Including the 2 options I have in those cells).
I am running a formatting excel, and I will also need to select from cell P30 till last row, then sort alphabetically by moving the other rows data too.
I am running a macro where I pass it starting column and it processes the next 10 columns. How can I pass it "J" and have it increment K,L,M,N,O,P,...?
x = InputBox("Please Enter the Loan Amount:") If x < 0 Then MsgBox ("please enter a loan amount greater than 0.") but then how do I bring up the input box again until it is filled in correctly?
I tried Do until a few times but made a mess of it, I also need to disallow alphabetic and symbol characters.
I need to create a list of all possible permetations of all 26 alpha characters when put into a 3 character string. EG: AAA, AAB, AAC, through to ZZZ. Is this something that can be done in excel/vba?
I have random "X"s in a column of cells in a range called "Won". I wish to count these if the adjacent cell in another range alled "Valu" is greater than a value determined in the cell E3. The result to be entered in Cell G4. Can use Excel formulas or VBA.
I currently have a spreadsheet that grabs data from 10 columns using vlookup.
This data is transferred to the new sheet in individual cells. (see attatched)
what i want to do is create a list from them cells, filtering out duplicates & counting them. Creating a list like this:
720x560 = x5 452x282 = x3 etc.. etc...
I've tried everything i can think of, but i'm imagining that its a vba job to do what i'm asking. I'd appreciated it of someone could point me in the right direction.
I have a named range “Value” and wish to count all the values over the value set in cell E3. The result to be entered in cell F4.
I have a second named range “Won”, adjacent to “Value”, and wish to count these values if the adjacent cell in the “Value” range has been counted. The result to be entered in cell G4.
I've got a database with a date header across the columns C1 to W1 [C1 value = '02/04/07 and W1 value = '30/04/07]
Each row represents a different person For each person there can be one of skills: Maths, English, French, Science, Geography on each day. Most people keep the same skill for the whole month but some change multiple times within the month.
What I'm after is a formula which will return the total number of people who have had each skill for at least one day within a time specificed time period. The startdate criteria is in A1 and enddate criteria is in B1
E.g How many different people had Maths on at least one day for the period 16th April to the 20th April.
At the moment I've been trying to work along the lines: =sumproduct((C2:W200>=datevalue(A1))*(c2:w200
Counting a variable range. Does anyone know why this is not working...
Dim r r = ActiveCell. Offset(0, 12).Value = Application.WorksheetFunction. CountIf(Selection, "Standard") Selection.End(xlDown).Select ActiveCell.Offset(1, 0).Select ActiveCell.Value = r
I have a column, we'll say E18:E2500. In the cells in that column are four digit numbers. Some of these cells may have multiple four digit numbers separated by a comma and a space. (example: 2020, 2100, 3120) Some other cells in the column may also share the four digit numbers (I mean duplicates).
So I'm trying to write a formula to sum and count all the unique values in the cells and in the range. This is what i've been trying to use but it counts all the values with no regard to duplicate values:
This works fine on the assumption that all the rows contain a value 0 or 1, this may not be the case as rows may be left blank for a varying degree of time and results may be posted intermittently?
I have a range of cells (A1:K20 for example) and I'd like to have Excel count the number of times a certain set of initials (PT for example) showed up in any of the cells within the range.
I found this formula =SUM(1/COUNTIF(A1:A17,A1:A17)) onlinesometime ago and have been using it regularly. It counts the number ofduplicates in a range of cells. I have been trying to modify this formula sothat it only looks at the first two characters in the cell. So, instead 7duplicates it would return 5 duplicates because the formula would only belooking at the first 2 characters in the cells.
I am trying to count the instances of a certain text in a range across 2 columns.
so lets say I have the word Dog in A1, A2, A3, A4 & B1, B2, B3, B4. I am look for the number beside each cell to say 1, 2, 3, 4 instead of summing the whole range.
I have tried the array formula of {=SUM(IF(C:D=C2,1,0))}. However this does just bring back the sum of the instances and I am clueles on how to get it to show the first instance, the second etc.
I have a spreadsheet in which I have a date column. I would like to be able to count the number of cells that fall within a specified date range and am struggling to find a formula that works.
i'm trying to count dates within a 2 week date range. I don't want to update the formula every day to the actual dates that would make up two weeks so I tried this formula but it keeps giving me an error.
I would like some help from someone on this subject if possible. I am running a stats report in a workbook where each member of staff have their own running totals of how much work they do and how much of that work is incorrect (per week). I have worked out that if I use the following:-
I get the total amount of work. To explain the above, it returns the amount of times a date appears between two dates i.e B95 is week commencing date and C95 is weekending; therefore giving the total amount of work in that period.
What I am struggling with is that I need a formula to look at the above date range and then look at another column that has either a ‘Y’ or ‘N’ (for yes or no) and for the formula to count how many N’s there are (thus how many in that given range there were)
It appears to me quite a small ask for Excel but I can’t seem to get it to work.