Can ISTEXT Search A Range
Jul 5, 2007
I'm currently designing a new spreadsheet and I can't change the formula I'm using below to search more than one cell or a range. Is either choices a option?
I'm using =IF(ISTEXT(E135),G135) Can I add cell E139 (and how many additional cells could be added) or can I set it up to search E135:E144.
View 13 Replies
ADVERTISEMENT
Jul 31, 2009
I have a workbook with worksheets named by peoples names. There are cells in my summary sheet that contain all the names of the worksheets (or peoples names).
Each worksheet has a table in it that I am trying to search one column to find a specific name and then report if there is text in another column in the same row. If I use the following formula:
=IF(ISTEXT(INDEX(INDIRECT("'" & E$4 & "'!f10"),MATCH(INDIRECT("A11"),INDIRECT("'" & E$4 & "'!h10"))))=TRUE,1,0)
It works and I'll return a "1" for cells in column F that have text and a "0" for columns that don't.
However, I am trying to sum up the cells in F that have text and when I enter:
{=SUM(IF(ISTEXT(INDEX(INDIRECT("'" & E$4 & "'!F10:F200"),MATCH(INDIRECT("A11"),INDIRECT("'" & E$4 & "'!H10:H200")))),1,0))}
it returns "1" when that should not be the answer. Am I doing something with the array in my INDIRECT formula? I used this similar application for another purpose in this workbook and refereced the array through INDIRECT the same way (but didn't use MATCH or INDEX) and it worked fine. This was the formula:
{=IF(SUM(IF(INDIRECT("'" & C$4 & "'!H1:H200")=INDIRECT("A5"),1,0))>0,SUM(IF(INDIRECT("'" & C$4 & "'!H1:H200")=INDIRECT("A5"),1,0)),"-")}
View 9 Replies
View Related
Jan 28, 2010
I am summing 3 cells, A3, A4 & A5. Cells A4 and A5 may contain text. I want to write a formula using the IF(ISTEXT funciton which says something like this:
Sum(A3:A5), if cell A4 and A5 contain text then sum just A3. If only cell A5 contains text then sum just A3:A4.
Im not sure exaclty how to construct this.
View 9 Replies
View Related
Mar 15, 2009
I have this formula in a cell: =IF(ISTEXT(F5),F4,""). The problem is F5 is visually blank and has this formula =B3. so it returns F4. Is there a way to rewrite the formula or to use another formula, so it will return blank?
View 2 Replies
View Related
Mar 20, 2014
I'd like to search a cell A1 containing for example 'hello_L765'. If the 7th character is L and the 8th character is text(ie not a number) than display yes, otherwise display the 7th character.
View 3 Replies
View Related
Jun 23, 2014
I have a rota sheet whereby shifts are written in as start time, finish time, and then a calculation for the hours.
At the bottom I have another SUM formula to calculate total daily hours.
However, within the total personal hours I have a VLOOKUP formula to check if the start time cell has a holiday text reference.
Please see below:
Take the "Sergei" example: he starts at 9am, finishes at 8pm, and the formula automatically calculates an 11 hour working day.
However, in the "Tom" example, the "TH" refers to another sheet which houses a reference of the amount of hours to place in the total hours box if those letters appear, thus imputing holiday hours at the same time.
"=IF(ISTEXT(F24),VLOOKUP(F24,'Hol-Meet Hours'!$F$7:$G$27,2,0),(G24-F24)*24-IF((G24-F24)*24>6,0,0))"
What I am struggling with is to use an IF and ISTEXT formula in the "Daily Hours" formula to ignore any holiday inputs, thus only giving me trading hours.
The only way I could think of doing it was something along these lines:
"IF(ISTEXT(F16),SUM(F17:F31),SUM(F16:F31)...et al"
The issue here is that I need to repeat the formula for every staff member within the same cell's formula, which I don't know how to do (multiple functions within a formula repeated 20 times), and is a right drag.
View 5 Replies
View Related
Nov 12, 2009
I'm trying to apply the istext to a cell that has multiple values eg: [car, boat, truck] so I have setup the cell with the formula
=istext(c147 = "car",1,0)
it returns false constantly. Is that becuase of the other values separated by comma's in that same cell?
Is there a way to do this so that I don't have to go through 300+ cells that have multiple values to separate them?
View 9 Replies
View Related
Feb 21, 2010
I've been trying to use excel's Isnumber or Istext function to evaluate a range of cells, but have been unsuccesful so far. Is it even possible? or is the formula just restricted to evaluating only single cells?
For example, if I do, Isnumber(A1:A10), is there any way to make that work?
View 9 Replies
View Related
Jan 13, 2005
I am trying to create code that deletes lines in a spreadsheet when the first column is either blank or has text in it. However, when writing the VBA code, ISNUMBER and ISTEXT do not work. Amazingly, ISBLANK does work.
View 4 Replies
View Related
Mar 24, 2009
I have 4 cols, x rows. I need Column C to check Column B for a numerical value, and if true, return the value in B, and if not true, then return value from A. Column B are functions formatted as general. The reference made by Sheet2!B is numbers formatted as text as to retain leading zeros. Here is what I have so far
=IF(ISBLANK($B10),$A10,$B10)
View 5 Replies
View Related
Dec 3, 2012
I'm trying to validate a cell in Excel 2007 that should contain only two letters.
Formula:
Code:
=IF(AND(LEN(A1)=2,ISTEXT(A1)),TRUE,FALSE)
When the value of A1 is JK, the result is TRUE
When the value of A1 is 12, the result is FALSE
When the value of A1 is 3K, the result is TRUE
When the value of A1 is K3, the result is TRUE
When the value of A1 is 123, the result is FALSE
When the value of A1 is JKL, the result is FALSE
When the value of A1 is 3, the result is FALSE
When the value of A1 is K, the result is FALSE
The LEN function works as expected, but the ISTEXT function does not, whenever the cell contains a number and a letter. I've tested the LEN and ISTEXT functions separately, and get the same results.
Is it me, or is it Excel?
View 7 Replies
View Related
Sep 24, 2013
Basically I have three sheets. MAIN, Sheet 1 and Sheet 2
Sheet 1 and 2 are in the same format
A3 down is a list of country names and then B3:I71 contains the data im interested in.
I've been trying to create a function that looks at B3:i71 to see if any cell in that range contains a value greater then $0.00. If it does then the row that contains the cell with a value greater then $0.00 (between col A to K) should be copied to sheet MAIN from cells B3 down. This should ultimatley produce a list of data for any row containing a value greater then $0.00. This process should then be repeated on Sheet 2 and should join the list below sheet 1.
View 3 Replies
View Related
Aug 1, 2014
I need to be able to query a large date range by a small beginning and end date range and return a count when the value is = each search criteria. i.e. - Search one year of dates from a table by Beg: 7/23/2012 to End: 10/21/2012 and return a count. The beginning and end dates are dynamic and I will need to reference the cells, i.e. B102 "Beg" B102 "End" and not a static date.
View 7 Replies
View Related
May 28, 2009
I'm trying to do is search a range of cells for a range of values AND then see if it matches one other value in another range of cells. In this case,
=SUMPRODUCT((T3:T49="P6")+(T3:T49="P5")+(T3:T49="P4")+(T3:T49="P3"))*(U3:U49="w")
T3:T49 can equal P6 or P5 or P4 or P3 but the cells can only be counted if U3:U49 is 'w' as well
View 3 Replies
View Related
Apr 4, 2009
was workin' on a text recognition question with someone here:
http://www.excelforum.com/excel-new-...ml#post2071064
and another user posted this:
View 4 Replies
View Related
Dec 23, 2008
I have the following ...
View 7 Replies
View Related
Feb 17, 2010
The intention of the below code is to write out the line is there is not a match in both ranges.
Instead of just D2 being searched, i need it to look into range E2 also if not found in D2.
At the moment if it is not found in D2 it is writing the line, though the match actually appears in E2 range in this instance, thus should not be writing the line.
FYI:
- Of course if there isnt a match in D2 range though there is in E3 then no line should be written as there is a match.
- if there are no matches in the 2 ranges then only 1 line should be written in the same fashion as currently coded.
View 6 Replies
View Related
Apr 11, 2007
What's the best way to search every third row in a range ("rDRange") which is one column wide to see if there is a match to "sDept".
View 9 Replies
View Related
Jan 22, 2013
I have a userform with text boxes. When I click on the GO button on the user form I want it to search from the TextBox to the range of rows on sheet2 from start to end and if duplicate entry is found it should display a message box.
For E.g. After pressing GO button Textbox entry should search Sheet2 (where all the data is entered) from the range starting from B6 to last entry of cell and if duplicate entry is found a message box appears. This entry keeps on getting updated and so it may increase or decrease, and therefore VBA should be such that it searches to the last entry.
View 3 Replies
View Related
Dec 21, 2013
I want to search for a value, in a specific range (in this case, in a row). If that value exists, l want the formula to return that value, otherwise l want it to return "FALSE" or whatever.
The formula must exist in one discrete cell only, i.e. the output will be contained in only one cell.I don't want to match the occurrence of that value with another row's cell. I don't want to search for multiple values (although if you have a way to do that, l'll be interested to know!), l don't want to count the number of times the value occurs.All l want is to return that value if it exists in the specified range of cells, and if it doesn't, l want to say "FALSE" or something.
View 7 Replies
View Related
Jun 27, 2014
i currently have the following code set up to look at one cell (named 'TypeSelect'). If that cell = "a" it unhides tab "TAB DETAIL A". If it doesnt = "a" the tab remains hidden. I now want this to search across a range of cells (B2:B7 or using named range 'Category_Select') for "a".
Ultimately the code is to look for any from a list of categories within a range and unhide the relevant tabs if the category is present.
View 1 Replies
View Related
May 12, 2009
I have a monthly time sheet. The times are entered in cells C8:F68.
When some one has a annual leave day or a bank holiday they enter A/L or B/H.
I have a summary sheet and have placed a cmd button on it to hopefully search the sheets that are months or the year.
I know how to search the sheets and increment through them and not the 'Summary' sheet.
What I need to establish is how to place in my code the actual search criteria and also limit the range to C8:F68
On top of this I need to total each occurance of A/L and B/H and display them in two cells.
I have tried to do a search of the forum but with no luck.
Like I say I have managed to understand how not to select the 'Summary' sheet when incrementing through the sheets but its just the search for the A/L and adding them up!
View 12 Replies
View Related
Mar 29, 2012
I want to search for contents of A1 in range of A1:B3 and if it is in the range return Y or N if not there.
View 9 Replies
View Related
May 3, 2014
I need to look through a range for a specific value. When I find it if the nearby time column matches a specific time I want to retrieve the lookup value. Because I am not very macro savvy, and the spreadsheet has to run on both mac and pc I do not want to use a macro. Can I do this with an IF((AND combination or is there a better way? If there is a way to look through a range with IF, how would I structure the criteria to look through an entire column for the value? Lookup won't work because the value can occur several times through out the range, but only once with a specific time value.
View 5 Replies
View Related
Mar 2, 2007
Is there a formula that will look through a certain range of cells for a specific value which is held in another cell.
So if P21 holds the number 21, search through P17:S19.
if the number (in this example 21) is found in that range place W in P23 if it isn't then L in P23
View 9 Replies
View Related
Oct 24, 2008
If a column contains it contains apple and ipod then display manufacturer as Apple Corp in c2. How can i do this?
View 9 Replies
View Related
Oct 13, 2009
Example:
0000-0999 Cell a1
1001-1999 Cell a2
2000-2999 Cell a3
3000-3999 Cell a4
These are a ranges of values in a spreadsheet. I would like to be able to do a search or lookup for a number that I designate that falls within one of these ranges and it will direct me to the cell that my value falls within.
For example if I do a search for 1550 it would take me to cell a2 with a range of 1001-1999.
Not sure if this is too complicated for a formula and might need to use VBA.
View 9 Replies
View Related
Jan 22, 2010
Is it possible to use the match or an other excel function to search for the first occurence of one of two values in a range?
For example in the below range i want to find the location (number like the match function) of the first occurence of "No" or "Closed":
Project Name Tasks DocumentTask ReviewTask ApprovalIssue DocumentIssue ReviewIssue ApprovalMilestone DocumentMilestone ReviewMilestone ApprovalPro 1closedYesyesyesyesclosedYesyesno
View 9 Replies
View Related
Feb 8, 2012
I am familiar with the custom formatting option to hide cell contents when you don't want them displayed in either a chart or when printing: Custom > Type > ;;
I was trying to create a macro that will search a specified range and whenever there is either a zero or nothing displayed in the cell (even though a formula exists), I want to custom format the cells to not be displayed.
My range is Range("B5:I16")
I tried to create something like
Code:
Dim dataRange as Range
Set dataRange = Range("B5:I16")
For each Cell in DataRange
if Cell ="" then Selection.NumberFormat = ";;"
I'm struggling to figure out how to tell Excel to step through each cell in this range, evalaute whether there is a blank and if so, apply the NumberFormat ";;" to it, otherwise let it be.
View 3 Replies
View Related
Apr 3, 2008
1. can i limit vlookup on sheet2 to search only a certain range of cells on a sheet1.
example, I want vlookup to look in sheet1, colum A - Y but only look between rows 1 and 100
2. If 1 can be done, and i happen to add a row in worksheet1 (making it 101 rows vice 100) will the vlookup code on sheet2 include that 101st row or do i have to redo the range manualy.
View 9 Replies
View Related