I have a difficult excel case as image below
Question is how can I convert to this format ?
Well, this one is probably pretty dirty, but it does what you need:
Formula in D2: =IF(B2="";D1;B2)
Formula in E2: =IF(D2=D3;"";D2)
Formula in F2: =IF(D2=D1;F1&C2;C2)
You can filter in column E, to get only the rows you want (or delete the no wanted ones after pasting values)
Related
I need to sum Amount for all the dates if there is value in India row:
I tried implementing with COUNTIF function but its not solving my problem, any suggestion welcome, I am pretty new to Excel formulas.
Try this.
Let's assume the top left cell on your image is cell "A1". Go to cell "C6" and paste the following formula:
=IF(C2>0,C2*(SUM(C4:C5)),"")
Now fill/copy that formula across to cell "G6". Then go to cell "H6" and paste the following formula:
=SUM(C6:G6)
Hope this helps.
What about this:
=SUMPRODUCT(C2:E2+C3:E3,C4:E4+C5:E5)
It's basically adding the two first rows, adding third and fourth rows, and taking the sumproduct. Obviously, you need to make sure not have a number in both rows one and two, and in both rows three and four.
Requirement :
->green color cell need sumproduct of cells where 90% found in 1st Column with its activity wtg.
->pink color cell need sumproduct of cells where 95% found in 2nd Column with its activity wtg.
->blue cell need sumproduct of cells where 100% found in 3rd Column with its activity wtg.
Just an extract pasted here, need a dynamic formula to use it in a large data table.
Thanks in advance.
You can use SUMPRODUCT() like below formula then drag across as you need.
=SUMPRODUCT(($A$3:$A$7)*(B3:B7=B1))
You can also use SUMIFS() like
=SUMIFS($A$3:$A$7,B3:B7,B1)
I have a query regarding the OFFSET and TRANSPOSE formulas. I have the following two sheets set up in Google Sheets (originally in Excel):
First sheet:
Formula in cell B2: =transpose('Form responses 1'!A2:BB2) (original)
=transpose(offset('Form responses 1'!A$2:BB$2,COLUMNS($A$2:A2)-1,0)) (current)
Formula in cell C2: =transpose('Form responses 1'!A3:BB3)
Formula in cell D2: =transpose('Form responses 1'!A4:BB4)
I would like the references to increase by row (vertically down) rather than by column (horizontally right) when I drag across to copy the formula.
Second sheet:
As you can see in the first sheet, I am trying to TRANSPOSE data from the second sheet using said formula. However when I go to drag the formula across (horizontally) it references the column when instead I need it to reference the row (if I drag it downwards it works fine but that is not what I need in this particular case).
I understand I need to implement a OFFSET function, something along the lines of: =transpose(offset('Form responses 1'!A$2:BB$2,COLUMNS($A$2:A2)-1,0))
I am unsure of what the last part would need to be, COLUMNS($A$2:A2)-1,0, what should I change this to to get the desire result?
If I have not explained thoroughly enough please let me know, thanks.
Use arrayformula and you won't have to drag anything. Try:
=arrayformula(transpose('Form responses 1'!A$1:BB$4))
I have a table in excel that I want to verify some %, but the formula goes down in the cell and the table goes to the right.
There is any way to modify the way the cells in the formula moves?
There's an inelegant solution: add an adjacent column of ordinal numbers starting from 1 (1,2,3, etc), and then refer in your formula to (for example):
=OFFSET($A$2,0,D6)
Hopefully this picture makes it clearer.
I have a spreadsheet with 4 columns : A, B, C, D.
I want to calculate the difference between A-B and C-D. So in cell E2 I enter the formula =A2-B2 , and get the result that I want, which is the difference between A-B.
Now I drag the formula in E2 to cell F2, expecting that Excel will "think" that now I want the difference between C-D. However, when I drag the formula from column E to column F I get =B2-C2 (you see, Excel assumes I want to use B2 again).
My question is: how can I make Excel “understand” that I want to use =C2-D2 after =A2-B2, and NOT =B2-C2?
This an abbreviated example. The original data-set has hundred of columns. Thanks for your help.
Enter Formula in E2
Drag the formula up till G2. Now G2 will have the formula which you want.
Delete Col F. Now Col G will move to Col F, which will have your required formula
There's no way in the UI that you get Excel to "think" that much - it'll only shift the references by one column if you drag it across. If deleting the columns in between is not an option, you need to rewrite you formula, e.g.:
=OFFSET(A1,0,COLUMN(L1)-COLUMN($L1))-OFFSET(B1,0,COLUMN(L1)-COLUMN($L1))
In this example, it is assumed that you start showing the difference in column L - of course you need to adjust according to your worksheet - but once done, you can drag the formula to the right as far as you need.
As your original data-set has hundreds of columns, you may want to use a non-volatile formula, eg:
=INDEX(A1:K1,1+COLUMN(L1)-COLUMN($L1))-INDEX(A1:K1,2+COLUMN(L1)-COLUMN($L1))
This will speed up calculations in the workbook. Depending on how big the data-set is and how many other formulas are in the workbook, the difference in speed could be enormous.
The same conditions apply as in Peter's example.