Matching SUMIFS Criteria on cell string value - excel

I want to add the values in Column G of Master tab, if column D = "Outcome 1", and column J equals cell A3 in current sheet. I'm using this formula below.
=SUMIFS(Master!G:G,Master!D:D,"Outcome 1",['Master'!J:J, A3])
Any tips? Thank you!

Related

Excel - how to match a column header with a row header (dates) and return a lookup value in VBA

I've looked high and low for this and can't find a solution. Plenty with formulas, but it must be in VBA.
I have a range of text in column A (A2:A100) and dates in column B (B2:B100), with sequential calendar dates in row 1 (C1:Z1). For every cell in the matrix/table, if the date in column B is the same as the date in row 1, the text in corresponding column A must be displayed. I can't use a VLOOKUP or MATCH formula, as the columns are narrow and don't display the full text unwrapped because of the formula in the adjacent cell. Thanks for any guidance. In the below, N2 must be "Electrician chasing", since N1 is the same as B2.
I think you want this (and you got your columns A and B the wrong way round)
Sub LoopAndDisplay
Dim r as range
For each r in range("C2:Z200")
If cells(1,r.column) = cells(r.row,2) then 'if date above matches column B then
r = cells(r.row,1) 'display contents of column A
End If
Next R
End Sub

SUMIF looking at a range of text criteria AND returning blank if empty cell

I have a SUMIF function on one sheet looking at a range of cells in Column A on a separate sheet (EP 1). If the value matches the value in a certain cell in Column A, the SUMIF function sums the numbers in another range of cells in Column D on the sheet EP 1. Here's my formula:
=SUMIF('EP 1'!$A$3:$A$25, "" & A5 & "",'EP 1'!$D$3:$D$26)
However, I have blank cells in Column A, so I would like to add into the formula, if cell (e.g. A5 as above) is blank, then return a blank cell. How can I do this?
Perhaps?:
=IF(ISBLANK(A5),"",SUMIF('EP 1'!$A$3:$A$25,A5,'EP 1'!$D$3:$D$26))

query formula: select all where column in sheet a= column in sheet b

I have 2 sheets in one spreadsheet(assume sheet A and sheet B)
and I want to query all data from sheet B(SELECT *) to sheet A
WHERE value of column E in sheet A = value of column E in sheet B
AND value of column G in sheet A = value of column F in sheet B
what should the formula be?
thanks
You could use a filter formula to achieve that =filter('Sheet A'!A2:Z,'Sheet A'!E2:E = A1)
Enter the formula in cell A2 of Sheet B, and enter your filter term in cell A1

Excel formula or Vba to Sum of all lookup value from multiple excelsheet

I need some help for the below scenario,
Sheet1 A2 has a date
Sheet2 and Sheet3 has dates in column A and numbers in column B
example as below,
I want to get the sum value from Sheet2 & Sheet3 B column for all the values in Sheet1 A2 if finds in Sheet2 & Sheet3 A.
Below is my formula which I can get the sum from Sheet2 but not able to do with both sheet2 and sheet3.
{=SUM((Sheet2!$B$2:$B$65500)*(Sheet2!$A$2:$A$65500='Sheet1'!A2))}
Please help in formula or vba, thanks
Can't you just add the two?
In B2 of sheet 1
=SUMIF(Sheet2!A:A,A2,Sheet2!B:B)+SUMIF(Sheet3!A:A,A2,Sheet3!B:B)

Excel formula needs to be dragged to a column not adjacent to it (reference cells should change accordingly)

I have an excel sheet where one column is filled with forlmulae that link it to other cells. Say Column R is linked to values in columns I through L.
Column T is to have a similar relation with Columns M through P as Column R had with Columns I through L.
I could drag the formula but there is another cell in between that I do not want to disturb.
Is there any way I can copy the formulae from the column R and paste them in column T ?
If you don't want to change column, you should write in formula a '$' char before column name.
For example:
B1 = A1 + C1
You don't want to change column C write:
B1 = A1 + $C1
But if you don't want to change cell C1, write:
B1 = A1 + $C$1

Resources