Gathering The Sum Of Cells Based On The Text?
Feb 19, 2014I need to add data from b2:b12,d2:d12,f2:12,h2:h12 and to show the totals in L2:L7
View 5 RepliesI need to add data from b2:b12,d2:d12,f2:12,h2:h12 and to show the totals in L2:L7
View 5 RepliesI have a column of dollar amounts (variances) and next to each is the shift they belong to.
I am looking to get a break down of the variances for each shift.
Attached is an example of what it looks like.
I have a column of dollar amounts (variances) and next to each is the shift they belong to.
I am looking to get a break down of the variances for each shift.
Attached is an example of what it looks like.
I have a selection of data that lists sellout information for 45 different Cable networks. What I'm hoping to accomplish is to have (on a separate sheet) a function that will automatically pull out the top 10 networks based highest sellout percentages and list them in order from highest to lowest. I don't even know where to begin or if it is even possible to set up as an automatic function.
View 3 Replies View RelatedAttached is a sample of a excel file I am using for tracking overtime.
On the sheet labeled tracking I want to gather data of the other sheets based on a date range.
All sheets other than the tracking sheet will be labeled in the date format mm-dd-yy.
On the tracking sheet in cells B2 & B3 will be the date range that I want to gather the data from.
There is 3 columns of data that I want to gather, "Balancing" "Approved" "Unknown".
I would like to return just a sum of these from the dated sheets M3:O42 based on the employee name A3:A42
I have a series of employee variances and dates for the variances in two columns.
I have another section on the same sheet where I want to track the amount of variances & occurances for certain months.
attached is an example of what I am looking to do.
ok lets say you have thousands of rows of raw data and you are running vlookups to pull specific data from the raw data to update your spreadsheet. Your raw data consist of some new ideas so when you vlook up, you get an error. In my case i get about 50 errors all spaced out amoung the thousands of rows or raw data. I would like to create a formula that would go and find the error and output a code/value that already exist in the raw data and output that in Cell D1 for example. The it will go and find the second error and output that into cell D2 and then the third error and output that into D3 and so on.....
The idea is that when its done a list of all the errors will have been created so then i can use other formulas to simple add the new info to the workbook. Instead of search through thousands of rows for the errow.
In the attached WB I managed to write some code (behind Sheet1) to change the Source table, itself, into the requested layout. My question is - could this be done by ONLY Worksheets functions - preferable without any helper column - if possible. note that all 4 columns data should be transported to the target table. The upper left cell of the target/new layout table can be put in cell G1 or in cell A15.
View 4 Replies View RelatedI've been given the task of automating a spreadsheet to assess whether work has been done by each employee. Every employee has their own spreadsheet, where column A is a job code, and column H contains either y or n dentoting whether they have completed the task (y) or not (n).
The main spreadsheet is designed to show any outstadning tasks across everybody so it has a list of everybodies names in column A and then any incomplete tasks will be listed from columns b onwards next to the appropriate person. Here is what I have done at the moment.
What I am looking to do is;
If cell A2 = "Closed"
then I want cells B2 and C2 to strike through its own text.
I.E.
A2= anything other than "Closed"
then B2 and C2 = Blah blah blah
but if
A2 = Closed
then B2 and C2 = Blah blah blah
I’m trying to make my life a bit easier, by adding a few macros and formulas to the spreadsheet (Everything was done completely manually before I got here!!!).
What I would like to do is take two columns, which contain a start and end time for work shifts, and colour them GREEN once I have entered a name in the Worker column (Along side the two with the time), and also to fill a cell with a Yes or a No. I’m aware of auto conditioning, and I’ve tried to have a play to get this to work, but I just can’t work it out.
I have posted a link to an image which shows what I want. I hope I've explained it well enough!
http://img530.imageshack.us/img530/6239/excelspfk0.jpg
I want to add all of the numbers in column D if Column C contains the word "REMO"
View 4 Replies View RelatedI am trying to program a macro that get the sheets in four different workbooks and put them into another workbook where my macro is located. I have managed to open the first workbook and copy the first sheet but when going for sheet two in the same workbook it gives me an error 91 stating the variable or with block variable not set on the following line:
[Code] ..........
Here is the rest of my code and attached file.
Attached File: Training Hours Macro.xlsm‎
I have an employee summary sheet, and another sheet where data will be entered by date.
On the summary sheet I want to gather only the last 3 dates that were entered.
Attached is an example.
I have a file that is a master report. Every month i have to pull information to it from 40-50 different files (all of these are exactly the same and the data is in the same sheets columns and rows) Is there an easier way of just pointing excel to one folders so it would automatically pull the date into mu master sheet?
View 4 Replies View RelatedI have a what I believe to be a consistant formula on lines S12-S18 for gathering the sumproducts for dates on column O. Only problem is that the sumproduct formula is not working on line S18 correctly. I keep looking it over and I can't figure out why it is not returning the correct amount for that cell.
Here is the formula I am using:
=SUMPRODUCT((TEXT($O$12:$O$500,"dddd")=R18)*1)
Please see attached line S18 for the error I am getting.
I'm attempting to list my data... I have a dynamic table that has the following columns:
number of countries
country 1
country 2
country 3
1
Egypt
3
USA
Egypt
Scotland
2
Scotland
USA
As you may have guessed, I want trends on these countries. That would be easier to do if I had a single "Country" columns but I have to work that way.
I would have wanted to work with a pivottable (because they're so "user-friendly" (not always though^^)) but I didn't find a way to do it.
The reason why I want to work with a pivottable is to be able to link my countries results to the rest of the table.. If that's not possible, I'd still want to be able to reference them and say "USA, egypt and scotland pop up 2 times"
I found the following formula (in E2):
Code:
=INDEX(Table1[country 1]:Table1[country 3];MOD(ROWS(E$2:E2)-1;ROWS(Table1[country 1]:Table1[country 3]))+1;INT((ROWS(E$2:E2)-1)/ROWS(Table1[country 1]:Table1[country 3]]))+1)
Which works but I have to manually click-drag that cell down to complete my list. I'd rather have it grow automatically if I have to work that way.
I have a value list box in C1 with 4 values "Yes", "No" , "Pen" & "Con"
If a user selects Yes in C1 for example I need J1 & K1 to populate with Yes (or No if they selected No from C1)
but if they have selected or later change the value in C1 to Pen or Con for J1 & K1 to remain empty.
I have 5 options that I am designating as "Allocation Methods" for a number of line items. They are numbered 1-5, but i have custom formatted them so that they have text in the formatting. They are as follows;
Allocation Method
1 - Allocation per Hard Cost
2 - Allocation PSF of Proj. or Hotel
3 - Allocation per Loan
4 - Allocation per Parking Spaces
5 - Allocation for Park
I will allocate one of the above allocation methods to every line item in an allocation column by hardcoding 1 - 5 in a cell for each line item. What i cannot figure out (or figure out if it is even possible) is how, for instance, can I type in a 1 and it have it automatically formatted per number 1 above & then if I change my mind to method 2 and type 2 it will automatically format per number 2 above. I know I can do this by creating a reference column right beside by allocation column, but I would prefer not to use that method.
I have an excel sheet that looks like this:
IMAGE 1
(The sheet holds more data but not needed for this)
I have two buttons; “BUY” and “SELL”
I need a vba-code that inserts either “BUY” or “SELL” in row 6 (buy/sell) and insert a text (code) in row 7 depending in this information. When I push either “Buy” or “Sell”
IMAGE 2
So.. When I push the button “SELL” (already made) the action “Switch” should get “Sell” and actioncode “SO”, and “Redem1” and “Redem2” should get “Sell” and actioncode “RA” and “RN”
So.. When I push the button “BUY” (already made) the action “Switch” should get “Buy” and actioncode “SI”, and “Subsc” should get “Buy” and actioncode “SA”
(When the button is pushed I have a autofilter that “hides” either all the “sell” or all the “buy”)
IMPORTANT: There is NO range!! the list goes on, and changes so I need it to work on x amount of rows. !
I have one cell (B10) that will contain either "high", "medium", or "low". Based on one of these 3 values, I'd like to shade cell J15 a color with some white text. I got 1 of the 3 keywords working, not sure how to add in the other 2.
View 2 Replies View RelatedWhat I'm trying to do has been done before, However, all of the Code i am seeing online is not working for me...so maybe i'm missing something
I want a range of cells to remain locked unless SCP is entered. I need this done for four different selections (SCP, SD, MM, PP)
So if SCP is entered, then a certain range of cells remains locked, If SD is entered then another range of cells remains locked, so on and so forth for the 4 selections.
This was what I was working with.... However, i am not sure if i need to protect or unprotect the spreadsheet before i run the macro, also am i supposed to leave all cells locked or unlocked?
Private Sub Worksheet_Change(ByVal Target As Range)
If [B3] = "SCP" Then
ActiveSheet.Unprotect ("PASSWORD")
[Code].....
I need assistance in shifting cells to left based on three (3) specific text values in column B. There are tons of data and extra lines and stuff but consistently these three (3) text values are consistently not aligned and I simply need to shift entire row 1 space to the left. I can do the long and tedious process of going through them all but is there a macro which I can play that does it instantly...
View 9 Replies View RelatedI am just learning VBA. I need to move to a cell location that is named in a range. As follows:
The cell "Sheet2!A1" has a formula that results in "Sheet1!B3". I would like my VBA code to read that cell and select Sheet1!B3. When using something like:
Application.GoTo Range("Sheet2!A1")
I end up of course at Sheet!2A1. I want to end up at Sheet1!B3 or wherever the cell reads at the time the code is read and operated on.
I need to write a Excel VBA (2003) code that can arrange the cells of one column based on the character length. An example is this:
Column Data before Running VBA
(Column A)
cat
oranges
apple
Column Data after Running VBA
(Column A)
cat
apple
oranges
I been doing this manually by using the LEN() command in an adjacent column (Column B) and sorting Column A. based on Column B. However, I wish to do this all in a VBA code that does not rely on how many rows are in Column A. I have dozens of excel sheets with various number of rows for Column A. Therefore, the VBA code has to also figure out when the last non-empty row is in Column A. Can anyone offer their suggestions to my problem?
Cell L90 to L120 are input cells where I type " Percentage" or "Dollar Amount". I need the five cells to the right of each input cell starting two cells over, to be formatted accordingly. I read a thread similar to what I'm asking for suggesting a worksheet change macro, but I can't quite figure it out for a range of cells. Also, in case I need to add a row to my sheet before all of these cells, how can I make sure that this will still work without having to go into the code. Is this an activecell thing?
View 5 Replies View RelatedTrying to learn the basics of how to pull data, from the same formatted excel spreadsheets, combined into one consolidated spreadsheet. I created a few examples below of what I am trying to do. Eventually, I want to be gathering data from over 200 spreadsheets at one time. I believe that a MACRO is needed to do such a thing. I am not sure of the complexity of the MACRO, so hopefully I will be able to mimic whatever needs to be done in my actual file. I have almost ZERO experience with MACROS, so if this is way above entry level MACRO.
Below I have 3 spreadsheets, and I want to collect the data from those 3 spreadsheets into the consolidated spreadsheet.
I have a list of names in Column B (Starting at B5) with assignments to them in Column A. I want the people who receive the file, to enter their name in B1 exactly as it appears multiple times in sheet. And hope to use conditional formatting to highlight (change the back ground color) of each cell their name appears in.
I've used a number of formulas in the Conditional formatting including "=(ISNUMBER(MATCH($B5:$B100,$B$1,0)))", Countif's and "Not(isnumber)..." but can't find a formula that picks up the whole text.
I need a formula for conditional formatting which highlights a row if A has the text "Ex" and B has "Paid".
View 2 Replies View RelatedSo basically I have a spreadsheet that tracks if a patient has turned in there required paperwork within the last 6 months and then changes the cell to white and lets me know how many days they have left until they are due to turn this paperwork in again. Then if it has expired I have a condition format change the cell to Red but I would like to add in the text EXPIRED to the cell. lastly I have Cells that have no data in them gray and I would like to add in red text saying No Paperwork.
I'm hoping this will be my last build of this spreadsheet so I can go ahead and start applying it to the real workbook [URL]