MS Excel - how to find names in string - excel-formula

please, I need help with one formula in MS Excel. I am trying to find names in a string.
My example :
I am looking for :
names in worksheet_Names (A1 : Pierce Bull, A2 : Madonna Hewitt, A3 : Luise Big, etc...)
I am looking in a string in :
worksheet_output (S2 : We tried to contact Pierce Bull several times, S3 : Contract with Madonna Hewitt has been signed), etc....
Requested output - one column, f.e in worksheet_output, column X
for S2 : We tried to contact Pierce Bull several times : req output Pierce Bull
for S3 : Contract with Madonna Hewitt has been signed : req output Madonna Hewitt

In worksheet_output cell X2, use this formula and copy down:
=INDEX(worksheet_Names!$A$1:$A$3,MATCH(1,INDEX(COUNTIF(S2,"*"&worksheet_Names!$A$1:$A$3&"*"),),0))
You will need to adjust the worksheet_Names!$A$1:$A$3 to the actual sheet name and cell range

Related

what the keyword for formula in excel

https://indocropcircles.files.wordpress.com/2017/01/tabel-kecocokan-plasma-darah.png
I want to make a call if I fill in "Type Blood" so the Blood Type will come out which is suitable for the type of blood I entered And information will come out why I got a suitable blood recommendation for that. so the results can be two. as in the table.
Type Your Blood :
The Blood Match :
Information :
but I don't know how to make a formula for that. I want to do it in Excel.
logically like this:
If I enter Type A, the Type of blood that matches is AB and O will come out; otherwise, it is not suitable no need to show
Type A = AB & O
Type B = AB & O
Type AB = B & A
Type O = A & B
You could use VLOOKUP. You specifiy a table (cell range) which contains your mapping and refer to it.
Source

Display cells values in specified order

I'm trying to make a report using excel, with the result like this :
Data example:
column A is ten product name : apple, pear, melon, etc..
column B is ten product code : appl, pir, mln, etc..
column C is where i input the string/value such as : appl / mln
column D is where the formula result such as : APPLE and MELON
The formula i'm using in column D is :
=IF(AND(ISNUMBER(SEARCH($B$1,$C1)),ISNUMBER(SEARCH($B$2,$C1))),
CONCATENATE($A$1," AND ",$A$2),
IF(AND(ISNUMBER(SEARCH($B$2,$C1)),ISNUMBER(SEARCH($B$1,$C1))),
CONCATENATE($A$2, " AND ", $A$1),""))
When i input product code "appl / pir" in column C1 it shows the result "apple and pear". This is correct result.
But when I input product code "pir / appl" in column C1 it doesn't change the result to "pear and apple", instead it remain "apple and pear"
How to achieve the result to display "pear and apple"?
Try this formula:
=IF(AND(ISNUMBER(SEARCH($B$1,$C1)),ISNUMBER(SEARCH($B$2,$C1))),
IF(SEARCH($B$1,$C1)<=SEARCH($B$2,$C1),
CONCATENATE($A$1," AND ",$A$2),
CONCATENATE($A$2," AND ",$A$1)),
"")
In your formula it's not possible to have condition in first IF false and in second IF true. It's exactly the same condition. Instead, you can compare positions of codes in your string.

Should be simple in Zapier.... not for me

I need help with the following setup:
HubSpot (HS) form is filled out: name, email. zip code.
Zapier adds row to an existing Google Sheet 1 (GS1) with 4 columns: name, email, zip, department
Google Sheet 2 (GS2) has two columns : zip, department
Zapier needs to look up zip code in GS1. match zipcode in GS2, lookup department in GS2 and insert it into GS1 department
I need help with Number 4. As soon as I have that I can send info back to HubSpot and carry on with the flow I am making.
Can anyone help ?
Thanks in advance.
I think we may have a quicker solution at-hand, assuming you prefer one less Zap for the final step.
If you create a second Worksheet in GS1 to house your Zip+Department data, you can use a VLOOKUP to solve your data reconciliation challenge.
Set up your first Zap to copy only Name (Column A), Email(Column B), and ZIP (Column C).
Add your ZIP+Department data to a second sheet.
In column D, use this formula :
=VLOOKUP( C2, $RANGE_OF_ZIPCODES, 2, FALSE )
What this does...
C2 < This is the ZIP you want to look up for the current row.
[$RANGE_OF_ZIPCODES] < Replace this with either a Named Range of Cells
2 < If the ZIP from C2 is found, select the value from the SECOND column in the range
FALSE < Require an exact match of the ZIP value provided in C2
If the ZIP code is found, the matching department will be returned! If it's not found, you will see an error value in Column D.
Think this approach will work for you?
Assuming there are not too many zip code & department relationships, you could avoid steps 3 and 4 altogether and use Code by Zapier to look up the department in between steps 1 and 2. Then when you add the Google Sheets row in step 2 you will already know the department to insert.
Your "data out" for the Google Sheet in Zapier will then have access to department which will be a valid department string, or 'No Match!'
Example:
var hubspotZip = inputData.zip;
output = [];
var departments = {
"00001": "Department A",
"00002": "Department B",
"00003": "Department B",
"00004": "Department C"
};
if (departments.hasOwnProperty(hubspotZip)) {
var zipDepartment = departments[hubspotZip];
output.push({department: zipDepartment});
} else {
output.push({department: 'No Match!'});
}

Look up for two values

I Have data set which contains Duration and Code with subject wise material observed. Which formula i have to use to get the value of total for month=june & Code=BHEB. I have tried using two dimension look up formula.
=INDEX(DataRange, MATCH(Code,Code,0), MATCH(Durations,Duration,0))
it doesn't suit my suitation, i cant change month value to column.
With a helper column (may be hidden), say inserted as A in the image, populated with:
=B1&"|"&C1
and copied down to suit then:
=INDEX(DataRange, MATCH(Code&"|"&Semester,A:A,0), MATCH(Durations,Duration,0))
may serve where the named ranges are:
DataRange : =Sheet!$C$1:$G$5
Code : =Sheet!$J$1
Semester : =Sheet!$J$2
Durations : =Sheet!$J$3
Duration : =Sheet!$C$1:$G$1
or extended to suit.

Excel output articles list

I'm working in Excel with an article file. I'll let it contain article number (ex. 1001) and the amount of this article. Here is the problem: I want to put out all articles in one row, separated by comma's, I explain:
If I have a column with amount and a column with article number, I want a cell with output like this: 3 article's 1001 gives: 1001, 1001, 1001 .
I've got about 1000 articles and now I'm working with: =IF(B3=0, "", B3=1, "1001", B3=2, "1001, 1001"), but as you see this won't work.
I'm sorry for explaining, it's really hard with my broken English ;)
based off of your example I believe this formula will help you:
=REPT("1001,",B3)
Update Per Comment
To dynamically use C3 use the concatenation character &
=REPT(C3 & ",", B3)
This reads: Join the value of C3 with the , and then repeat that B3 times.

Resources