How to find a row in excel based on multiple criteria - excel-formula

I have the following spreadsheet:
and I'm trying to find a formula to fill in cells E2 and E3.
If tried multiple combinations of LOOKUP(V and H),MATCH,ADDRESS and others but can't get the right result.
Does anyone have any ideas.
Many thanks in advance.

In E2 and E3 enter:
=VLOOKUP(D1,A3:B14,2,FALSE)
=VLOOKUP(D1,A17:B28,2,FALSE)
This assumes that the dates are text values (in both column A and cell D1):

Related

Finding partial matches within an if statement

Does anyone know how I can write an if statement that searches for partials in VBA? For example, if A2 and A3 both contain Jon, I would like the totals under the 2020 column to be summed, and then it would move down and check the values in A4 and A5. It should work the same way for Mary. But with ben, it should only total A6 because the cell underneath contains Chip. Then it should go down again and check the following two cells for a match. This is for a report that changes weekly, so the names will not always be the same. Any help is appreciated. Thank you.
As Rno said, name uniques would become an issue, but for this small data set you can add another column of name values in column F and do a sumif formula on those separated names.
See Formulas Used Pic
In cell f2 =TRIM(RIGHT(A2,LEN(A2)-FIND("-",A2,1)))
In cell H2 =SUMIF($F:$F,$G2,B:B)

Group text in Excel

I have a table with 3 columns,
I want to group the Text rows to something like this :
Please help
If you have Excel365 then it would be easier to achieve your result. As per below screenshot put following formula to G2 cell.
=UNIQUE(C2:C5)
Then put below formula to E2 cell.
=TEXTJOIN(", ",TRUE,IF($C$2:$C$5=$G2,A$2:A$5,""))

Excel Formula to Find Duplicate Value

I have an excel file with three columns (C,D,E) and one more (F) for finding all duplicate value. How can i use excel formula to get expected result (column F).
So the above columns should look like this:
Thank you in advance!
Try this formula in D2 cell and this is one way to get the output.
=IF(ISERROR(MATCH($A2,$B:$B,0)*MATCH($A2,$C:$C,0)),"",$A2)

Formula to Search for Data in One Column, then Apply Formula

I am working on a personal budget sheet in excel, and it's formatted based on my pay dates, to provide more drilled-down information. I have attached an example of it below for reference.
I would like to put a formula into J2, J3, and J4 which will take the data in cells C9:C26 and H9:H16, match it to the date in cells D2:D4, then subtract the expenses in D9:D26 and I9:I16 from E2, E3, and E4.
As you can see, I have just individually summed the cells; however, I would like a formula to be able to adjust as I change the value in cells C9:C26 and H9:H16.
I have found that I can do it with ONE cell, but not multiple or a range. This is the formula I used, and I cannot find a way to make it apply to the entire range of cells: =IF(C14=D3,E3-D14)
I've also tried: =IF(C9:C25=D3,E3-D9:D25) -- I know this formula doesn't work and why. I cannot figure out how to get column C to correspond with column D.
The Budget Sheet
You just need to use SumIf().
In cell J2, put this formula: =SumIf($C$9:$C$25,$I2,$D$9:$D$25)+SumIf($H$9:$H$25,$I2,$I$9:$I$25) and drag down the three cells.
With that, you can add E2-[formula] to subtract all that from E2. Or of course, just do e2-J2 instead. I think that should do what you're looking for. If it's not quite it, let me know and I can tweak.
If you plan to have more than 1 criteria go with SUMIFS
Yes, with S

How to return strings which occur more than 4 times in an excel doc

Fairly new to excel, I have a document with rows and columns filled with names. Basically i want to be able to find if any names are there more than 4 times, and if so which names these are. What is the formula I would need to do this? I've tried iterations of countif and index but I just cant seem to get it right. Thanks in advance
So, if you have your input values in column A:A. Enter this formula into B1 and drag it down:
=IF(AND(COUNTIF($A$1:$A1,$A1)=1,COUNTIF($A:$A,$A1)>=4),$A1,"")
And then you get your final result without blank cells in C1 (and down) with this formula:
=IFERROR(INDEX($B$1:$B1000,AGGREGATE(15,6,(ROW($B$1:$B1000)-ROW($B$1)+1)/($B$1:$B1000<>""),ROWS(C$1:C1))),"")

Resources