Tracker
HOME    TRACKER    Excel

Sumproduct With Text String

I have trying to write a sumproduct formula, however, the total sum amount that i get is "0", which i think the formula is not picking up the text. =SUMPRODUCT((\$Y\$2:\$Y\$65536="Evaporative cooler*")*(\$Q\$2:\$Q\$65536=\$AM\$5)*(\$N\$2:\$N\$65536=6),(\$AA\$2:\$AA\$65536)) Y column is the text column to find the Evaporative cooler, the Q is another column where i have write the text out at AM5, N is a number field. The only bracket that is not working is the Y. Can you please let me know if I did anything wrong to it? There are 3 types of Evaporative cooler, 1) Evaporative cooler - phoenix, 2) Evaporative cooler - Cal, 3) Evaporative cooler - Brisa. I wondered if I can use "*" to select all of the Evaporative cooler, instead of listing all three.

Related Forum Messages:
Sumproduct With Text String (wildcard)
I am having problem filtering out criteria by putting together a sumproduct formula. I would want to use wildcard to populate 2 criteria from the data sheet, they are "Ducted Evaporative Cooler Single Stage 1 Tier" and "Ducted Evaporative Cooler Single Stage X-1 Tier". In my formula, I have used a wildcard "Ducted Evaporative * 1 Tier*" for the prior and "Ducted Evaporative * X-1 Tier*" for the later. I would like to know whether by checking my formula that i am using....

If Text Found In String Return String
Find a short text string in a column of longer text strings and when that short text string is found return the longer text string that matches.

Match Row That Contains Text Text String; List Associated Values From Pivot Table
refer to the attached workbook for reference. I am looking for a function in Sheet1, Column E that will search for the value of Sheet1, Column A within Sheet2, Column A. When a match is found, the function should look across Sheet2, Columns B - V for values of 1. When such values are found, the function should return the associated value from Sheet2, Row 2. There may be multiple values of 1, and as such, the function should separate values with a comma.

Extract Multiple Text Strings From A Long Text String
An original text string entry appearing in an Excel cell would be:

"N7C Neuroprotective J5Z Antiviral, other M2Z Antiarthritic, other J5A Antiviral, anti-HIV"

I need to extract N7C, J5Z, M2Z and J5A from this string and list these alphanumeric values in separate cells adjacent to the original text string. The challenge is that these alphanumeric references may appear in different positions within the original string with no fixed value e.g. a "," separating them. The alphanumeric references may also be 3 or 4 characters in length and there may be different numbers of alphanumeric references in the original string.

Another example would be (very different from the first):

"T2Z Recombinant, other K5B Radio-chemoprotective J3Z Antibacterial, other D3A Vulnerary A10C Symptomatic antidiabetic K6Z Anticancer, other R8A Antiasthma B6A Septic shock treatment I1Z Immunostimulant, other S1Z Ophthalmological R8B Antiallergic, non-asthma M1A1 Anti-inflammatory"

You can see that in this further example "A10C" & "M1A1" are 4 character alphanumeric strings wheras the others feature 3 characters.

Partial Text Lookup In Text String And Return
Cell H1 has a variable string of references for eg
"FI570783AQ3516346EQ3516346FXVB123456"

I want to return the reference beginiing with "FXVA" so it would ignore the rest and only return FXVB123456 - this should always be 10 characters.

Just to add another complication to the mix, there may be 2 "FXVA" references in the string and i want to get both (these can be in the same string so FXVB123456FXEL123456 - but this might not happen regularly.

Check If Text String In Cell With Other Text Is In List
I have a sheet in which some of the cells have two strings separated by a linefeed. I have come up with a cumbersome formula which will let me check if either of the two strings is a member of a list stored on another sheet. However, it fails if there is only one string in the cell, presumably as there is no linefeed for the formula to find. How can I modify the formula to cope with this situation?

There are also on occasions, three strings in the cell, but I can't seem to access the middle string with the formula. Simplified spreadsheet attached to show the problem. This must be formula-based, as we have a no VBA policy. If you think there is better way of doing this, please let me know.

Sumproduct & Text
I am trying to use the following formula:
=SUMPRODUCT('Raw Data'!\$B\$2:\$B\$10000=\$A\$1)

The reason why I am using sumproduct is b/c I have to add more to this formula. In column B on the Raw Data sheet there are years listed. The years are formatted as text. Is there a way to have this formula work without having to change the format of column B?

SUMPRODUCT To Return Text
The below table is a small extract from my data. I want the formula in C3 to return the contents of A4, that is, where Amount = D3, Policy = E3, Status A3. The following formula returns 0, because I'm trying to return a text string rather than a numerical value:....

Wildcard For Text In Sumproduct
Tring to get the following spread sheet to calc column C using two criteria
Criteria 1 Column D must contain HC Investor anywhere
Criteria 2 Column A must be less than Reimbrusement - 11
The following formula in G2 appears to have an error in criteria 1 ....

Sumproduct To Find Text
I recently had a lot of help using the sumproduct formula with isnumber datevalue added to it. I now want to do the same but rather than finding numbers, i want it to find text.

In my attached example. You can see that Jerry A has received three applciations, but 2 of them have been cancelled. How can i add the formula where it would only count Jerry A's applications, but where they have been cancelled i.e. the formula would show 2 not 3.

Text Wildcard In Sumproduct
I am having great difficulties in finishing this formula off.
It is a sumproduct containg many criterias, however one of them is to only add up a certain coloumn if another column begins with L&L...

The coloumd contains L&L and a number, but the number changes so i need the number to be a wildcard. I have tried ="L&L???" but this does not work.

=-SUMPRODUCT((Catagory="STK Retail")*(MONTH(Inv_Date)=3)*(YEAR(Inv_Date)=2008)*(How"Account")*(Order="L&L???")*(Stock))

SUMPRODUCT Use To Return A Text
If recently learned how to use the sumproduct function as a lookup for multiple criteria and it was working great, but I realize now all the values that I was returning were numbers. Is there a way to use the sumproduct under the same circumstances but to return a text value?

COL ACOL BCOL C
A1X
A2F
A3G
B1E
B2S

I would want the lookup with conditions of ColA=A and ColB=2, so the return should be "F"
=SUMPRODCUT((\$A\$1:\$A\$5="A")*(\$B\$1:\$B\$5=2)*\$B\$1:\$B\$5).

Sumproduct #Value! Error Due To Text
I'm using this sumproduct and it works until a cell has text.
=SUMPRODUCT((\$C7:\$C16=\$C\$2)*(\$D7:F16))

I've tried =SUMPRODUCT(--(\$C7:\$C16=\$C\$2),(\$D7:F16)) but got the #Value! error because of the D7:F16 range. If I changed it to become F7:F16, then it works. But...my original formula adds all values giving me a YTD result. If I changed the range to be only F7:F16, then all I get is just that column's data. I have January to December's data across the columns from D to F. Any ideas on keeping my D to F range? I've tried Transpose but it didn't work either.

Sumproduct Using Text And Values
Is there a way to sum a list that contains both text and values using the SUMPRODUCT function? My efforts yielded the #VALUE! error. SUM and SUMIF will ignore the text but I have multiple criteria.

SUMPRODUCT Contains Text, Using Asterisk
Let's say I have two columns: Homeless (column A) & Services (column B). Homeless responses can be either "Y" or "N". Service can be "a", "b", or "ab". Here is an example:

Homeless Service
y a
y b
n a
y ab

I was hoping to use SUMPRODUCT to calculate clients who are homeless and receiving "a" service. I want to be able to calculate those receiving "a" service even if they are receiving "b" service, so I attempted to use asterisks like I have used prior with the COUNTIF function. Here is what I thought would work:
=SUMPRODUCT((A2:A5="y")*(B2:B5="*a*"))

And I expected it to return 2, but I found that I couldn't get the SUMPRODUCT to work with asterisks. I am able to get the results I want be creating a new column to sort the services into just those who are homeless and then using COUNTIF, but I'd rather come up with a more streamlined approach.

SUMPRODUCT With Cell Reference Rather Than Text
{=SUM(IF(MONTH('3107'!\$A\$2:\$A\$188)=MONTH(\$A6),'3107'!F\$2:F\$188))+SUM(IF(MONTH('3207'!\$A\$2:\$A\$188)=MONTH(\$A6),'3207'!F\$2: F\$188))+SUM(IF(MONTH('4107'!\$A\$2:\$A\$188)=MONTH(\$A6),'4107'!F\$2:F\$188))+SUM(IF(MONTH('4207'!\$A\$2:\$A\$188)=MONTH(\$A6),'4207 '!F\$2:F\$188))+SUM(IF(MONTH('4307'!\$A\$2:\$A\$188)=MONTH(\$A6),'4307'!F\$2:F\$188))+SUM(IF(MONTH('AS21'!\$A\$2:\$A\$188)=MONTH(\$A6) ,'AS21'!F\$2:F\$188))}

Failed to convert using

=SUMPRODUCT(--((IF(MONTH('3107'!\$A\$2:\$A\$188)=MONTH(\$A6),'3107'!F\$2:F\$188))+SUMPRODUCT(--(IF(MONTH('3207'!\$A\$2:\$A\$188)=MONTH(\$A6),'3207'!F\$2:F\$188))+SUMPRODUCT(--IF(MONTH('4107'!\$A\$2:\$A\$188)=MONTH(\$A6),'4107'!F\$2:F\$188))+SUMPRODUCT(--(IF(MONTH('4207'!\$A\$2:\$A\$188)=MONTH(\$A6),'4207'!F\$2:F\$188))+SUMPRODUCT(--((IF(MONTH('4307'!\$A\$2:\$A\$188)=MONTH(\$A6),'4307'!F\$2:F\$188))+SUMPRODUCT(--(IF(MONTH('AS21'!\$A\$2:\$A\$188)=MONTH(\$A6),'AS21'!F\$2:F\$188)))))))))

A6 is a month column and looks like this "Jan-08"
the '3107', '3207', '4107', etc. are the names of specific sheets, so I'm summing over multiple sheets.

SUMPRODUCT With Today() And Text Criteria
Im attempting to add number of dates within a column (B). I have 2 criteria: Today and person "William". Im using the following and return results is "0"

A: Name
B: Date
C: Type

=SUMPRODUCT(--(Data!\$B\$2:\$B\$3100=TODAY()),--(Data!\$A\$2:\$A\$3100="William"),--(Data!\$B\$2:\$B\$3100))

Once I get this working I would like to adjust for last 30days and look at Type (C) = New

SUMPRODUCT Not Working Due To Text In Column
I'm trying to work out how to fix the formula below to take into account and ignore and text entries, while giving me the result of the sum of column K minus the sum of column J. If I delete the text entries, the code works but I need the text entries to stay where they are. I've attached a sample sheet with fake info to explain whan I'm trying to do.

Cell N28 on the 'MGMT INFO' tab contains the following formula:

=IF(ISERROR(SUMPRODUCT((Sheet01!\$K\$1:\$K\$1000)-(Sheet01!\$J\$1:\$J\$1000))),0,(SUMPRODUCT((Sheet01!\$K\$1:\$K\$1000)-(Sheet01!\$J\$1:\$J\$1000))))

Columns J and K on the 'Sheet01' tab contain the Pay and Invoice information for all the work planners for that client that I'm trying to find the difference between. Each work planner has 'Pay' and 'Invoice' also in that column though, one entry per planner which is causing the SUMPRODUCT formula to screw up.

Pull From Another Sheet And Sumproduct And TEXT
I have sheet 1 which has titles set up in column A. These titles are pulled from Sheet 2 (same column). I also have a date listed at the top of sheet 1 (in the same row as dates in sheet 2, but sheet 2 contains multiple columns for each quarter). I would like to set something up where if the date in sheet 1 matches the date in sheet 2 it pulls the corresponding values from the named rows in sheet 1. I tried using sumproduct but its not working b/c it wont take TEXT. Plus I want it to search across all of the columns, not just one.

Below is sheet 1 and I would like to be able to pull 1Q08 values from sheet 2 (which contains the values for every quarter). This is my formula (the first part is the date, the second is row titles, the third is the value (although its only pulling from one column, it s/b pulling from all) :

=SUMPRODUCT((Sheet2!B1:B6500=sheet1!B6)*(Sheet2!A1:A6500=Sheet2!A7)*(Sheet2!BA1:BA6500))

Is there someway to fix this, it would be a huge time saver.
--------------------------------------
1Q08
Revenue
Direct Costs
Gross Profit
Indirect Costs
Stock Based Compensation
Restructure Charge ....................

Extracting Text From Text String
I have a meeting name in column A that also includes a meeting #. The meeting number is always enclosed in parentheses and is at the end of the meeting name. There could also be information enclosed in parenthesis in name. I want to extract just the meeting # from the name. Also, the length of the meeting number could change. Here is an example of a 3 meeting names:

Example 1: March Madness (FY2008) Boston (8765) I would want just 8765 to be extracted
Example 2: Year End Planning Audit (11567) I would want just 11567 to be extracted

How can I extract just that the meeting number from these meeting names.

Return Value Within Text String
Can you please assist in helping with a formula that will return the value of the characters (no matter the length) between the "."?

123456.B.78.C.321
12345.B.78.C.321

VLOOKUP String Of Text
I am wanting to look for a string of text within the "lookup_value" that matches the text that's in the "table_array".

Find Last Row With Text String
The following line finds last "non-blank" row in a column. I have a column that has formulas in 10000 rows. Most of the time only first 7000 rows will have data, other cells below will have "". I need to find the last row with real data, not "".

Is there a way to add a condition or check to the following line?

Extract Text From String
I need to be able extract a string from within a longer string. The information I want will always start 5 chracters in and be bordered by an underscore either side, but could be of any length. For example in the following string, I would want to extract WF602.

DDR_WF602_____02_00_001_FLANGE_WR34_4_HOLE_PLAIN_CLEARANCE

I've been looking at the RegExp functions but can envisage problems with this as later parts of the string (WR34) have the same form as the part I need.

I can get rid of the first 4 characters using

Parse Text String
I need to parse text strings and format them.

The string looks like this and runs down an unknown number of rows in one column, Col A.

+000800-000900+00123456-000800+0012345650+000700

I want to parse this so that the results will be text to columns

80.0 90.0 1234.56 80.0 1234.56 50 70.0

I want to thank BrettH for creating this VB. I want to manipulate it to read every row in Col A that has data, and then I want to parse the data as shown above. BrettH's VB works but I couldn't modify it to read all the rows that had data. I tried looping the rows using a counter loop and also a For Each loop, but could'nt get it to work.

Sub ParseInCellMath()
Dim DefaultRange As String, UserRange As Range, OrigForm As String
Dim TempForm As String, NegString As String, NegStart As Integer

Extract Text String
Is there a relatively simple excel function which will extract the end of a text string. The end has two or three full stops / periods so I would like to count back three to six or more characters and use the full stops as 'cut off points' by passing other full stops?

Find Text In A String
I have the following string of text and want to take out certain parts of it. Assume the string is in cell A1.

In cell B1 I want "Company ABC DEF"
In cell C1 I want "10.50%"
In cell D1 I want "12/13/2014"

String:
Company ABC DEF (USD) 10.50% 12/13/2014

how the MID formulas work (as a bonus)? I used =MID(A1,FIND(")",A1,1)+2,45) and it returns "10.50% 12/13/2014".

So I see that that formula says start from 1 character after ")", count 2 over, and then put in the next 45 characters. How do I do an in between amount, and how do I just have it come from the LEFT but stop when it finds " ("

Reference To Text In A String
anyone know how to refer to text in a string? vba

Extracting The Last Name Of A String Of Text
I have a column of names, I need to extract the last word

Simon Greaves
Martin John Mackay
Miss E Hoddle
Bob W Blanchflower
Sarah White
D Gascoigne
H G Gomes

Greaves
Mackay
Hoddle
Blanchflower
White
Gascoigne
Gomes

Finding Text Within A String
On my spreadsheet I have a column entitled: "Item Title", and the data within this column can look like the following;

Extract Text From A String
I would like to extract whole word according to starting string.
I wrote following code, but function " find" is not exist.

Sub GetFullName()
Dim str As String
str = InputBox("Requested String?")

Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select

For Each rng In Selection
rng.Offset(0, 1) = Mid(A2, Find(str, A2, 1), Find(" ", A2, Find(str, A2, 1)) - Find(str, A2, 1))
Next rng
End Sub

Extracting Text From String Vba
I need to extract the text from a string that is always less the last three digits. For example if A1 is abcdefg I always have to take off "efg" and extract the rest of it to the left but the length of the string can vary. I can be dirty and record a macro where I find the length, subtract 3 and then using the LEFT worksheet function can get my result, but when I come to try to convert that to VBA. What is the VBA equivalent of LEFT worksheet function and how would I go about using LEN in conjuntion with subtracting 3 from it?

Inserting Text In Mid String
Is there any function or methodology to insert text in mid string? ex. I would like to insert a string after the dashes below.

0506-40365503970
0506-40365752746
0506-40365994154

Web And Find Text String...
I have this page in html. How to find the value 1 and 4 in:

<td WIDTH="25%" ALIGN="center"><font style="font-family: Verdana,
Arial, Helvetica, sans-serif; font-size: 10px; font-weight:
bold">&nbsp;Pagine&nbsp;1&nbsp;di&nbsp;4&nbsp;</font></td>

and to find the value 308: <td align="center" colspan="11" class="INFO">Totale fidi individuati:308<br></td>. after store the value founded in var_1, var_4 and var_308. NOTE: in this case the value are 1, 4 and 308 but the contet of tag the value can change because the page is dinamic, in other case find the value after:

font-weight:bold">&nbsp;Pagine&nbsp;now is 1
font-weight:bold">&nbsp;Pagine&nbsp;1&nbsp;di&nbsp;now is 4
<td align="center" colspan="11" class="INFO">Totale fidi individuati:now is 308

Find Number Within A Text String Using VBA
I have a list of English game results with the score and the soccers of the game.

E.g. : [Steinsson 34, Davies 41, Elmander 46; Fuller 91]

As you can see in the excel, what Im trying to do is to find the time i.e which is the numbers in the field and display them seperately onto the cells beside. So what i need is to Find and extract these numbers 34,41,46,91 and paste them just beside cell on the list.

I can use formula but i can only display 1 number, so i think this might require a VBA script.Thanks in advance guys..

If Statement That Return A String Of Text?
not sure if an "IF" staement is appropriate?

I have 3 columns containing data:

column A has text in it,
example: A2="red", A3="green", A4="blue"

column B has 3 letter month in it and they could have repeats
example: B2="Jan", B3="Feb", B4="Jan"

C2="Jan"

in D2 list anything column A that matches C2
example: D2="red, blue"

VLOOKUP Part Of A Text String.
Is there any way I can Vlookup for just part of a text stiring in a cell.
I am trying to vlook if a part number contains the letters “HFR” if it does I want
It to refer to the comment I have made in the second column of my vlook table against HFR.

Separate Text From Numbers In A String
Is there a way to separate text from numbers, (other than text to columns)
My data is all different lengths, nothing consistent,plus I want to put the separated data in another column.

Count Spaces In A Text String
I am looking for this for some time. Is there any formula (not vba) to count that how many occurances of spaces are in a text string, spaces could be more than one between the words.

Searching For A String In A Text File
I wrote some code which has compiled a LOT of text files telling me what computers have licence for certain software.

The name of the txt file is the computer name and data within is simple:
--------------------
Found Office
--------------------
as we can see here this computer has 1 licence for OFFICE.
If the string "FOUND" is found then i want to be able to paste the licence name in a spreadsheet and in the next cell underneath paste the filename it was found in the e.g.

VISIO
comp1,comp2,comp3,comp4

WORD
Comp2, comp3, comp4, comp5....and so on......

Code To Space String Of Text
Need code that will indent text in a cell 5 spaces over.

Adding A Cell In A Text String
I was able to find the syntax to add a cell within a text string but I am having a formatting problem. The cells which I am adding were using formulas that left decimals. Although I turned off all of the decimals on the cell, the values when I used the cell within the text string included all of the decimals and in some cases 6 or more decimal places. Is there a way to keep the formatting of the cell?

Extracting A Date From A Text String
I have a column of data in the following format:

261D 31/12/2008

There is also a single space after the end of the date.

Can someone please show me a formula to extract the date from each cell in the column? This is slightly complicated by the fact that the number of days (“D”) could consist of 1, 2, 3 or 4 characters, and the date could also be of variable length (e.g. 1/1/2008 vs 31/05/2008)

Extracting Integers From A Text String
is it possilble to extract integers from a text string within a cell?

Eg.
Cell A1 - "ABC 123"
I want to extract the "123" from cell A1.

I have many text strings from which I need to extract the integers from.
The trouble is that each text string does not follow a consistent order, so I
cannot use text functions such as LEFT, MID or RIGHT to extract what i need.

Vlookup Part Of The Text String
Is it possible to lookup if at least 8 characters of a text string is found in another text string?

Parse Name & Number From Text String
I receive a text file daily of between 100 to 50,000 rows. It is a combination of many smaller text files or " records". Each record contains a row containing the name and some particulars . From 1 to 5 rows below that row there may or may not be a row containing the score for that record.

Here is an example of what the rows look like;

4505329 64036593 150090 MS MARY SMITH AB Finished
CRP 3.0 SCORE: 400

From the first row I need to pull out the second string of digits (ex 64036593) and the person's name. From the second row I need to extract the score (400). I would like to copy the three pieces of information to 3 separate columns on another sheet.
1. the word "Finished" always appears at the end of the row with the name in it but it also appears at the end of every record in it's own row like this;
Finished No Note
2. the strings of digits in the first row can vary in length but there are always 3 of them and they are always seperated by spaces.

I need to extract all the names and scores and put them in a table. If a name is not followed by a score I need to put "no score".

Find Text String Value Between Quotes
Formulae Solution prefered if possible--

Is it possible to extract the two text strings between the quotes, placing them in Col. C & D respectively, e.g.
Application.WorksheetFunction.Substitute(c.Formula, " ANTI ", " ANTI-HERO ")
Application.WorksheetFunction.Substitute(c.Formula, "SEC9", "SECTOR 9")
Application.WorksheetFunction.Substitute(c.Formula, "LNGBRDC", "LONGBOARD COMPLETE")

--Col. C---------------Col.D
Anti------------------Anti-Hero
SEC9--------------- SECTOR 9
LNGBRDC---------- LONGBOARD COMPLETE

There are three types of scenarios-
1) Values enclosed in quotes that begin and end w/ spaces:
Application.WorksheetFunction.Substitute(c.Formula, " ANTI ", " ANTI-HERO ")

2) Values enclosed in quotes that does not contain a leading space or trailing space:
Application.WorksheetFunction.Substitute(c.Formula, "SEC9", "SECTOR 9")

3) Values enclosed in quotes that have a space between itself:
Application.WorksheetFunction.Substitute(c.Formula, "LNGBRDC", "LONGBOARD COMPLETE")

Extract Part Of Text String
CREATE TABLES LIKE BELOW?Column 1 Column 2
8 6CSS130 + 2CSS200g x10hanger 200 GM
250ml B2G1 Towel in bagx24 0607 250 ML
18 g-Mint 18 GM
100g 100 GM
150GM 150 GM

i have a data as above, i wanna to extract the 250ml from the column 1, only 250ml (basically i want to extract the size code like 150g, 100gm from the data above).

Return A Value If Cell Contains Rather Than = A Text String
I want a formula or function that will return a count value if a cell contains a string rather than returning a value if the cell equals a value. For example, =COUNTIF(A\$1:A\$19703,F1) returns a value to cells in column G if the value in column F equals any exactly matching value in A. I need a formula that works like the filter option "contains" so that if any cells in col A merely contain a string rather than exactly match or equal a string from column F I can get a count value returned.

Find Text String In A Value Instead Of In A Formula
What formula can I use to search a range of cell values for a specific text string? My method is searching formulas instead, which is not what I want.

Background: I am developing a little test script for a project and I want to include some automatic validations to help make the job of the testers easier.

What I have set up so far:

1. Testers input numbers into specific fields M8 through M20.

2. Fields N8 through N20 automatically check fields M8 through M20 and compare those with what is contained in a range of hidden cells I set up in advance. A formula ensures that it reports "correct" or "incorrect" on a field-by-field basis, based on the comparison.

3. Cell O8 searches for the text string "incorrect" in cells N8 through N20. If that text string appears in any one of the cell values (not formulas), then O8 directs the tester to test again. If the text string "incorrect" does not appear, then cell O8 reports that the test was successful, and the tester can proceed to the next test (exact same setup repeats).

My only problem is in the formula used for the last step. I have tried a few different formulas I know in cell 08, but none are giving me the results I'm looking for. The closest I have come is a successful search and validation based on the string being in the formula instead of in the value of the given cell.