Get Cell Value After Text Search - excel

I'm currently working on Excel.
I have two columns (Column A and COlumn B). Column A contains a list of jobs(one job per cell), while column B contains the cost of each job per hour.
I'm trying to find a formula that tests if a given text or word (for example "Accountant") is contained in one of the cells in Column A, and then returns the corresponding value from Column B (next to it).
Thanks in advance for your help!

The answer is =VLOOKUP("ACCOUNTANT";[RANGE COLUMN A AND B];2;FALSO)

Related

Trying to reference data in variable rows after matching specific cell in excel

In Excel I'm trying to paste in weekly time card reports and then reference the bottom line of each section which contains the yellow highlighted text string in column B (report contains 15-20 sections with variable row differences).
Without using VBA, is there a way to identify an employee ID (Column A), then calculate how many rows below that ID that the last text string cell is located in column B (Highlighted in yellow in the example). Then use that row difference to offset the INDEX formula to grab correct row from the table.
I was using INDEX/MATCH to find the employee ID and then trying to offset the row return per employee manually when I realized that the different job codes rendered that formula inaccurate.
I had used this to reference the proper columns with the offset for one of the weeks, but each week varies. The "+17" at the end of the below formula is where I need the variable row difference to grab the yellow highlighted cell.
=INDEX($A$1:$A$100,(MATCH(A61,$B1:$B$100,0)+17))
Thanks in advance, hopefully I provided the right info to answer the question if there is a solution!
after a revamp of the thought process, the following formula will return the information corresponding to as specific employee and their tax information which is stored in column B in a cell with "EFURTA" in it. No other cell in B within the employee block can contain "EFURTA". If that happens only the first occurence will be returned.
Assuming your data is layed out per the image below, the following formula will return the information you are looking for:
=INDEX(B:B,AGGREGATE(15,6,ROW($A$1:$A$80)/((FIND("ERFUTA",$B$1:$B$80)>0)*(ROW($A$1:$A$80)>MATCH(D2,$A$1:$A$80,0))),1))
Adjust the ranges to suit your data.
If you just want the row number, just grab the aggregate part of the formula and drop the index.

Checking to see if two rows have similar data in excel

I want to compare data in two excel cells (from two columns) and write the matching values only to third column.
I have two lists of countries, column B has roughly 120 countries while column A has roughly 192 countries. I can't figure out a way to display the countries that correspond with each other (seeing if B belongs in A).
Here is an example of what I pulled off from another thread and it doesn't work for me.
excel question
Now, here is my spreadsheet.
My spreadsheet
I just want to validate and compress the countries that are listed in column B to see if they match Column A and print them in C.
Please let me know how I would do so?
Thanks,
You can use this formula in cell C1 and drag down as far as necessary.
= IF(SUMPRODUCT((B1=A$1:A$192)+0)>0,B1,"")
This formula returns the country name in the cell next to it if the country exists in the A column, and blank otherwise.

Test for the presence of a value and, if so, if other cells in that row fall within range

I'm attempting to check one list of roadways (each has a unique identifier) against a separate list in Excel. If that roadway on the first list is present on the second I then want to see if it also falls within the milepoints on the second list (for both lists I have a column with for the beginning milepoint and a column for the ending milepoint).
The formula (located in cell CC3) I have that is checking for the roadway on the second list is this:
=IF(ISNA(VLOOKUP('Sheet1'!CA3,'Sheet2'!Y:Y,1,FALSE)),"",VLOOKUP('Sheet1'!CA3,'Sheet2'!Y:Y,1,FALSE))
I'm attempting to write a formula in another column that will check to see if the milepoints from the first sheet fall within the milepoints on the second sheet. Here is the formula for that:
=IF(AND(CC3<>"",F3>='Sheet2'!F2,G3<='Sheet2'!G2),"YES","")
Column F is the beginning milepoint and Column G is the ending milepoint on both sheets.
I realized that this formula isn't doing what I want since the second and third logic tests are simply looking at those respective cells on Sheet 2, not at the Column F & G values on the same row where it found the matching roadway unique identifier. How would I go about fixing this? I can seem to reason my way through it. Thanks for any help you can provide!

Excel Copy value of different columns to one depending on substring of a column

I can't seem to find what I'm looking for and I just can't make it work with the partially correct Answers I find.
So I have an Excel file with empty column A. A lot of data is pasted in columns B to E
I need Excel to check if the data (text) in column be start with "C0". If it does, it needs to add this value to the field in the same row of column A. If column B does not start with "C0", Column A should get the value of column C (which is also text).
The only solutions I find are for integers or for whole strings. In this case the value in column B is a text and somehow can't fix it to look for only beginning with "C0", it always wants to check the whole value or doesn't check at all.
Try this in A2:
=IF(Left(B2,2) = "C0",B2,C2)

EXCEL: Count values in column based on values in corresponding column

I feel like this should be really easy, but I can't figure out the commands.
I have data in columns C and D which either contains a date or is blank. I have data in column H which contains the name of an employee. I want to calculate the total number of times, for each individual employee, non-blank values occur in C and non-blank values occur in D.
CountIf doesn't quite seem to have the capacity to do this. Any ideas?
In addition to previos answer, if your criteria is for non-blank cells:
=COUNTIFS(H:H,"YourName",C:C,"<>"&"",D:D,"<>"&"")
If you are using Excel 2007 or later, use
=COUNTIFS(H:H,"YourName",C:C,"",D:D,"")

Resources