So, what I have is an excel sheet that is automatically generated by a program, so reformat is not an option:
Example Worksheet
General format of this excel will stay the same, with some additional rows depending on the day.
I’m trying to create a formula that I will use from another worksheet (I can handle linking from another workbook) that will give the total number of Boxes for that day.
For example, the correct answer for this day would be 85.
I have tried a few formulas but they have not worked for me.. I am most likely missing something. I tried getting all numbers relative to the “Totals:” cells, and just distinguishing the “* Box” columns with SUMIF but that didn’t work either.
Ideally: Have the formula look at cells in the same row as the “Totals:” rows(blue), but only in the Box Columns(orange) to pinpoint all the (green) cells and add them all up for a grand total.
Colors were just added for visual reference.
Any help is appreciated.
Try this. There may be a way to make it more compact, but I have tested and this works if your columns do not change
=SUMIF(A:A,"Totals:",I:I)+SUMIF(A:A,"Totals:",K:K)+SUMIF(A:A,"Totals:",M:M)+SUMIF(A:A,"Totals:",O:O)+SUMIF(A:A,"Totals:",Q:Q)+SUMIF(A:A,"Totals:",S:S)
After a quick test something this might work (as an array formula):
Related
I have a bit of a strange problem that I'm trying to solve.
I have a large macro-enabled Excel file that takes around 3 minutes to calculate all the formulas in it. I did not create this file but I'm trying to see if there is a way to expedite the calculation.
I have tried all the usual tricks of disabling screen updating, changing calculation to Manual but I also noticed that almost all of the formulas in this file reference entire columns instead of fixed ranges so $A:A instead of A1:A1000 or similar.
There are different formulas on different tabs so I was wondering if there is a way to dynamically replace such instances with a fixed start and end cells. I know I can use Find/Replace but I don't want to have to do it for every single formula if there is a better way to do it using VBA.
Essentially, I'd like to be able to read each cell on a worksheet and replace entire columns with fixed ranges. For example:
Old formula: =IFERROR(INDEX('426'!$CC:$CC,MATCH($J14&"Space",'426'!$CN:$CN&'426'!$CB:$CB,0)),"")
New formula: =IFERROR(INDEX('426'!$CC1:$CC5000,MATCH($J14&"Space",'426'!$CN1:$CN5000&'426'!$CB1:$CB5000,0)),"")
Thank you!
I am sure this is really simple but cannot get it to work. I am trying to do some conditional formatting on a sheet that over time will have additional columns added to it. I want the formatting to be there before hand since the data is being added via VBA and the person using the spreadsheet are not Excel experts.
What I have is a column with numbers in. When a new column is entered I want to compare the value with the value in the previous column and then colour the cell accordingly. I can do this for a single cell with for example "=D2>C2".
I want to be able to write the rules in cell D2 comparing it with cell C2 and then have the rules apply across the area D2:DDD300. So for example cell N19 will compare itself to cell M19.
I thought I could use the "Applies to" box but that does not work. Any ideas on how I can achieve this?
Okay this now appears to be working. Not sure what I did differently but deleted all the rules and then set them up again. The only thing I did different was to initially do it for just the 1 cell, then expanded it out to the row when I knew it was working, then finally the whole area.
Sorry to have wasted peoples time
Your method should work. It does for me. Maybe this helps:
I came across this excel files (xlsx) so there is no VBA involved, no table, no name. But columns C is updated with formula "automagically" when I insert a number into column B. I checked the name manager, there is no name. I would like to know how can I achieve this kind of functionality. Have anyone come across something like this?
P.S: When I copy Range A2:C13 and paste to a different files. The magic still works!
Screenshot in Excel 2016
So, you go to File>Options>Advanced and tick the box that says:
Extend data range formats and formul̲as
Ok, I got this one. Simply add 4 or 5 subsequence row with formula in column B and C. And continue continue to enter data in column B like this GIF:
I manage to have this behavior by having the formula defined on all the cells of the column* with an "IF(NOT(ISBLANK(c); <your formula>; "")" condition on the input cell:
e.g. you enter this in C1
=IF(NOT(ISBLANK(B1)); B1/(1+B1);"")
you click and drag the formula like you know how;
Et voila
*)(or as many as necessary, since it could be a little "heavy" for Excel to have the formula 1048576 times, nearly for nothing)
Hope it helps
I have a data sheet that contains 9 columns corresponding to a name. But the names are repeated. So I want to create new sheets for all names and filter their data from the data sheet. The sheets must be updated when any changes are made on the data sheet.
I tried VLOOKUP but had some various problems, and it didn't work well for me. I've found a way that may help, but it's prepared for Excel. ( https://fiveminutelessons.com/learn-microsoft-excel/use-index-lookup-multiple-values-list )
In OpenOffice ROW(1:1) doesn't give a result. Dragging as an array also doesn't change the cells in the formula. So are there any alternative ways to solve this problem? (OpenOffice solutions are preferred).
The example from the link in the question almost works in LibreOffice. To fix it, instead of ROW(1:1), use ROW($A$1:$A$6).
I am not sure what ROW(1:1) does in Excel, and I could not find an explanation online. In Calc, ROW($A$1:$A$6) returns an array of 1 column x 6 rows: {1;2;3;4;5;6}.
So here is the full formula using the example.
=IF(ISERROR(INDEX($A$2:$C$7,SMALL(IF($A$2:$A$7=$A$9,ROW($A$2:$A$7)),ROW($A$1:$A$6))-1,3)),"",INDEX($A$2:$C$7,SMALL(IF($A$2:$A$7=$A$9,ROW($A$2:$A$7)),ROW($A$1:$A$6))-1,3))
Be sure to enter it as an array formula with Ctrl+Shift+Enter
I am creating a work chart for a project with excel table. However with so many people to manage I have ran into an issue of often putting same person twice on different columns of the same row (he/she can't work on two places at same time!)
So, I am looking for help with a formula that notices if the same name appears twice on a row but does not count multiple blank cells as duplicates. My understanding of excel is very basic and so far I have managed to get this far
=COUNTIF(A6:W6;A6:W6)=1
which returns to me with false, which I assume is because of the blank, unfilled cells still within the table being counted as duplicates.
Help would be appreciated, thanks.
You can't have a range as the second argument of a Countif. The range you pass into the formula will resolve to just the first value. Use the Evaluate Formula tool to see what I mean.
If you want to determine if ANY name in the range A1:W1 appears more than once (and exclude blanks), you will need a recursive function. That can only be done with VBA, not with a formula.
You could use a Countif in a conditional format to highlight duplicate names in a row. That's a piece of cake. Pipe up if you want to do that.