I'm working on a personal budget spreadsheet, and I have a tab that calculates what I've spent so far in certain categories and compares that total to what I have budgeted for. I have one column showing how much I've spent and the one next to it shows how much I have left to spend. What I want to do is highlight both the total and the amount left if the column showing the difference is negative. I want to do this for the whole 2 columns. Here is a link to my sheet:
https://docs.google.com/spreadsheets/d/1AXaxVpVpblxwnS7VBhz4yhz1SNXRGCB6Zrb3OIKiaKk/edit?usp=sharing
I think my main challenge is highlighting both cells dependent on only one of them. I've tried some custom formulas but they don't seem to work. I know there has to be a way to do this. Any ideas?
You just need to fix the custom formula with a $ and apply it to G6:H26 so that when it is applied to column G it still checks column H:-
=$H6<0
Hope that helps
Related
trying to figure out how to summarise some data quickly.
I have here an example of what I am trying to do in the attached picture.
Basically - I have a yearly planner with some names, and on various dates there's a X marking that person on that date.
I need to be able to summarise on either the bottom or a new sheet, the total days as a list of days where there's a mark. The data also needs to be presented in the same format - with all names shown even if there's a blank in that days cell.
I can't use VBA because I'm forced to use EXCEL online unfortunately.
I basically want (from a coders perspective) select column where column not null.
Can anyone help me understand how I would do this please? If not I'll have to manually go through and pull out the columns on a weekly basis
Thanks!
Example
It took a few hours to build a solution.
https://1drv.ms/x/s!AncAhUkdErOkgqRwUEztHeWbj3LkqA?e=s4x0SI
A3 =IF(COUNTIF(C3:L3;"x")>0;ROW();"")
C1 =IF(COUNTIF(C3:C12;"x")>0;COLUMN();"")
B17 =IFERROR(INDEX($B$3:$B$12;MATCH(SMALL($A$3:$A$12;ROWS($A$3:A3));$A$3:$A$12;0));"")
C16 =IF(IFERROR(SMALL($C$1:$L$1;COLUMNS($C$1:C1));"")<>"";HLOOKUP(IFERROR(SMALL($C$1:$L$1;COLUMNS($C$1:C1));"");$C$1:$L$2;2);"")
C17 =IF(IFNA(INDEX($C$3:$L$12;MATCH($B17;$B$3:$B$12;0);MATCH(C$16;$C$2:$L$2;0));"")=0;"";IFNA(INDEX($C$3:$L$12;MATCH($B17;$B$3:$B$12;0);MATCH(C$16;$C$2:$L$2;0));""))
I have been looking at different forums and I hope someone could help me here.
I want to conditionally format a cell based on certain criteria
The below would be a master table from which I will need to select data
and compute the values in this table
So, in the formula, I want to see how Phil's time is allocated across three Sprints. So, I will need to look at Sprint column in table 1 and search for Sprint 1, find Phil assigned to Sprint 1 and add the "estimate" total in table 2.
I saw something like this on the forum, but, no luck. I also tried using lookups and index and all I see are errors. If you have an easy way of solving for this, I would really appreciate.
You can use SUMIFS
The formula in B2 is:
=SUMIFS($I:$I,$J:$J,$A2,$G:$G,B$1)
This looks like a pretty basic sumifs.
=SUMIFS(Table1[estimate], Table1[sprint], H$2, Table1[assignee], $G3)
Don't drag the formula to fill the other cells. Copy and paste into the larger area. Dragging will shift the column references like relative cell addressing. Copying and pasting will treat the structured table references as absolute.
I have a spreadsheet that provides monthly results for the last year. The layout is 7 columns per month, each column is the same information for each month (count and rate of various things).
I need to trigger a true/false based on both count and rate being above threshold values in any of the twelve months.
I can do this using either nested IFs or just a lot of IF statements, but was wondering if anyone has a better suggestion? I am open to formulas or VBA, whatever would be most robust.
Image of how each month is arranged
It's a little hard to tell from your spreadsheet what the layout is, but I tried to recreate it (See image below). I entered the function =IF(OR(B2>0.04,C2>2),$A$2) into cell A7 and dragged it across the spreadsheet. All the values you're looking for should be under the Month column. To prevent the function from changing its reference to the first column Name, I used absolute referencing, with dollar symbols $A$2. This way you don't have to keep changing it back to the specified column. Hope this helps.
I have a timetable that shows every day of the year. The columns are headed with month names and h (for hour). If I mark a day with a label I put a number on the h column right next to it. These numbers should be summed up whenever the appropriate label is found.
Example of my timetable
So the formula (not query!) should look for a specific label on the whole timetable and sum all numbers right next to it in one cell.
I've tried several solutions but I guess I just don't understand the mechanism of array formulae to achieve a solution and even the SUMIFS function doesn't get me anywhere.
=SUMIF(B4:Y34,"WM",C4:Z34)
works for me. Don't know why sumifs didn't for you but then you haven't said what your problem was with it.
I've been searching for a solution to my problem for days and haven't had any luck. Maybe I simply can't manage to search for the right wording for this problem but hopefully somebody will understand me here.
I'm having difficulties displaying data that is present in several columns at the same time, in my case the data to be displayed are trading days for various stocks. As the trading days vary between stocks I would like to have a column that displays the dates present in all other columns to only see trading days in common for all stocks.
I apologize if I'm unclear as this is my first question here. If anyone could point me in the right direction I would greatly appreciate it.
Here's the google spreadsheet link so you can see what I mean by different amount of trading days. The idea is to have column A display dates which are present in columns B,F,J,N,R,V at the same time but not show the other ones.
https://docs.google.com/spreadsheets/d/19GsIAtEdWPGcBfNOPaeqNVB7QQNO-bOyg-dCZzDaGkQ/edit?usp=sharing
EDIT: To show the desired output I'm looking for, here's another example:
https://docs.google.com/spreadsheets/d/1jrIqaEzDPWcW4hkF2YdHq9XYIWjG8PhrewYrBHqEdVY/edit?usp=sharing
The dates are automatically pulled from google finance. As the various exchanges are open on different dates, each stock has a varying amount of open days in columns B-E.
What I'm trying to do is have a formula in Column A that checks all the other columns and returns the data (in this case the date) that appears in every other column, discarding the data that doesn't appear in all other columns. For example 3/9/2013 appears in all columns B-E therefore it is shown, however 12/09/2013 doesn't appear in column B therefore it isn't shown.
Cheers
your dates are in european (UK) style, ie: 31/12/2014 but your spreadsheet is saved as US standard. This will cause some dates to be stored as text, as they are considered invalid. Ti will also couse unexpected results if you try to do any calculations or comparisons using your data. Go to File -> Spreadsheet settings and under locale choose correct country.
Then select all date columns, and click format->number->date or click the 123v button on tool bar, and choose date.
to simplify your problem:
for a value to be repeated across all 6 columns, that value must appear in column B.
you therefore want column A to contain the value of the adjacent cell in column B, if that value also appears anywhere in column F,J,N,R and V.
to check if value of B4 appears in column F you can use COUNTIF function. If the result if >0, than value of B4 appears in column F. Repeat for all columns and combine to achieve the following formula (to go in cell A4) :
=if(countif(F:F,B4)*countif(J:J,B4)*countif(N:N,B4)*countif(R:R,B4)*countif(V:V,B4),B4,)
now copy this formula down, and only dates that appear in all columns will be displayed in column A.
Use IF and COUNTIF. I think this is what you are looking for.
IF(COUNTIF(B4:V4,B4)=6,B4,NA())