Regular Expression For Password
Mar 15, 2014
I want to apply regular expression for password
a) The first letter cannot be number
b) the password should have a combo of numbers letters and one special character
c) The password should begin with a big case letter
View 1 Replies
ADVERTISEMENT
Jul 31, 2009
I'm trying to figure out the whole Regular Expression thing...so I figured Hotpepper's EXDATA UDF would be a good place to try and rewrite with Regular Expression...I got it to work...but not sure why as it seems opposite of what I would have expected...
eg pattern [^/d] i thought would give me everything except numerics...but it appears to be giving me numerics....
here's the code and sheet...can someone help explain what's going on? .......
View 9 Replies
View Related
Apr 13, 2007
I am using the following to check if a string has a sequence of 6 decimal digits in it. But am getting an error. If(str Like *######*). I have to check if str has values like 123456USA ; ABC725439 ; jh658478hd. I thought # represents a single digit and * represents any no of characters
View 2 Replies
View Related
Nov 2, 2007
I've some code that I use to scan HTML to find images. The basic part string I use is:
WildSought = "**"
The problem is that there are several ways to close an image tag. The above closes using /> but you could also use "> for example. Is there a way in my regular expression to say "this OR that". Maybe it would look something like:
WildSought = "*
View 9 Replies
View Related
Mar 15, 2008
I want to count the number of cells in a row containing a value greater than a fixed number but less than a number entered in another cell.
For example, in the cells A1..K1 I want to know the number of cells which have an entry greater than 7 but less than the value I have entered in cell M3. I have used the COUNTIF in other circumstances but I cannot find out how to use it with this "greater than and less than" condition?
View 9 Replies
View Related
Jul 14, 2009
I'm having trouble with the Rmdir statement.
I have tried ...
View 10 Replies
View Related
Mar 26, 2009
I'm trying to make an expression to calculate some fields in Excel 2007.
Trying to check fields up to a given number and give them a high multiplier, and add the rest of the numbers with a lower multiplier.
I have multiple fields with numbers in hundreds. I want to multiply the sum of this fields (up to 500) with 4. But the expression must also start the count from the first field, and when im hitting 500 as a sum I want the rest to be added with 2 as multiplier (the reason for the prioritizing of the fields is that they also have their own values/multipliers, but I'll skip that to avoid to much confusion here).
It's probably a lousy description. I'll give an example:
Field 1__Field 2__Field 3____Sum
100____300_____500______2800
How in earths name did I get that Sum you might ask.
((100 + 300 + 100) * 4) + (400 * 2) = 2800
400 is the number left from the third field wich I only want to multiply with 2 instead of 4.
Another example:
Field 1__Field 2__Field 3____Sum
300____600_____500______2000
((300 + 200 + 0) * 4) + (900 * 2) = 3800
900 is taken from the rest value of field 2 and 3.
If there any way of doing this "sum check and multiply, and then add the rest with a different multiplier"?
View 11 Replies
View Related
Jun 21, 2014
With Excel you can do If(array, array2, false) to poplulate another array. Is there a way to replication this without looping. For instance can the IIf hold an array as its expression or is there any other way of replicating this If statement without looping?
View 4 Replies
View Related
Oct 29, 2008
Here's what I need to do. I have a list of row numbers in AA2:AA6, so for i =1 to 5
I want to insert a page break before cell (column AA and Row(#in cell AA2-5))
View 14 Replies
View Related
Jul 22, 2009
what the long expression for the range being summed below.
Reason: I need to exclude some cell values.
View 11 Replies
View Related
May 24, 2007
I am currently using a SUMIF statement as follows: =SUMIF(W1:W1500, "Charnwood" & "*", S1:S1500). The problem i am having is the fact that SUMIF doesn't work with a reference to a closed worksheet. I tried using SUMPRODUCT but it did not work. The reason it didn't work is because I need to find in column W anything with Charnwood and anything else past it, auch as Charnwood Estates. This is what I tried: =SUMPRODUCT((W1:W1500="Charnwood")*(W1:W1500="*")*(E1:E1500="S"),S1:S1500)
which of course is a syntax error.
View 2 Replies
View Related
Dec 7, 2009
Using Excel 2007 the below code causes Run Time Error '16', Expression too complex.
It works fine in Excel 97, 2000 and 2003.
why this would now cause an error?
My search on google only refers to this error in relation to charts.
View 6 Replies
View Related
Jan 22, 2013
I am getting 'Constant Expression Required' and this line of code highlighted.
Code:
Const sFile As String = ThisWorkbook.Path & "Survey.xlsm"
View 5 Replies
View Related
Jul 9, 2007
I need a nudge in the right direction here. I have found several examples on the board that have spawned some ideas but need a little more help.
I am looking to enter variables into 2 columns A and B and then run these variables through an expression.
I have already done basic cell math and want it to be cleaner by using VBA to run the calcs and then spit the answers back into the spreadsheet.
I think I have an idea as to how it need to function but do not know the exact commands to make it efficient.
View 9 Replies
View Related
Feb 22, 2009
I have been reading the different post here on the forum.
I have found a snippet of code that will open a pop-up message from a value of a cell. I would llike to do this on one of my reports. Here is the scenario.
Range (R5:S5) 0.15 them MsgBox "Note Must Be Entered For +/- 15% change"
But There are 14 different cells that I want this to work for. The value differs from day to day, and this should pop-up happen without a user having any actions other then the calculated value. But ones the note is entered in the "Notes: cell the message will not return.
Hope I explained it correctly.
The value of the cells in question are calculated in each cell with a formula example "=IF(ISERROR(Z20/H5),0,IF(ISERROR(Z20/H23),0,(Z20/H23)))"
View 9 Replies
View Related
Mar 1, 2010
I have a formula that has been working and it looks like this
=VLOOKUP(A13;'IFS export'!$A$1:$F$19000;4;FALSE)
Now I want to use the same formula in an other workbook and it gives an error
=VLOOKUP(A2;DRAWING!$A$2:$C$9168;3;FALSE)
When I type this formula I get the window that says
"This formula contains an error.
*For information about fixing common formula problems, press help.
*...........
*..........."
And if I go and try to change the first formula that has been work it gives me the same error.
View 9 Replies
View Related
Dec 11, 2009
Documents......Data.xls
where "..." is any old string of characters?
View 9 Replies
View Related
Mar 25, 2014
In excel 2007 i need to do a formula...
I have the number of hours and de couste...in an other cell i have the expression that says that is paid or not....
I need only sum the cells that have the expression paid ...how do i can do this?...
View 1 Replies
View Related
Jan 28, 2010
I have this COUNTIFS expression buried in a larger formula:
COUNTIFS(Table[C7],Table[C7]&"",Table[C21],">=1")
and it always returns a value of zero or some positive integer.
I'm now looking for a little "function" that I can wrap around this expression that will:
A) indicate any non-zero result as 1 or TRUE
and
B) indicate any zero result as 0 or FALSE
Something like...
AREYOUNONZERO( (COUNTIFS(Table[C7],Table[C7]&"",Table[C21],">=1") )
I'm sure there's a fairly efficient way to do this... but I'm totally stumped at the moment!
View 7 Replies
View Related
Jul 12, 2008
I have a large spreadsheet in which I have reached the limit for conditional formatting. (i.e. 2050 rows)
To resolve this I can add a single expression for conditional formatting across all cells. This means I need to create a more complex expression.
I effectively have two types of conditional formatting that are very similar. I have the standard Yes, No & A/L which I wand to shade accordingly. I then have alternating columns of Yes , No , A/L . I have introduced spaces to stop these values from being counted by another formula but still display yes and no. I want the shading to be the same in both cases.
I have built the following expression which does not seem to work.
=ISNUMBER(SEARCH("Yes",(ADDRESS(ROW(),COLUMN()))))
The two components of the expression work separately:
=ISNUMBER(SEARCH("Yes",P3))
=ADDRESS(ROW()-1,COLUMN())
View 9 Replies
View Related
Jul 7, 2014
I'm trying to do a COUNTIF using regular expressions. I can do it in SQL, but I'm having a hard time figuring it out in Excel.
My SQL query looks like:
[Code] ....
In Excel, I'd like to do the same thing so that I can send it to a client and have the counts already in the spreadsheet. Basically, I want count anything that has 5 numerical digits followed by "_.....".
View 3 Replies
View Related
Sep 24, 2009
Hope the title isn't too broad. Every time I think I have got to grips with RegExp I get stuck on something apparently quite simple. So, I have a few queries so I hope OK to bundle them together.
1. How do I remove the word 'of' only if it occurs after certain other words (the other words should also go). E.g.
"Vale of White Horse" should stay the same
"Borough of Lambeth" should become "Lambeth" (because 'of' after 'Borough')
I tried "Borough(sof*)" but that doesn't remove either word.
2. How do I remove everything after a '/' (inclusive)?
I have tried "/sw+" which removes the first word after '/' but there could be other words
3. How do I remove everything inside brackets (inclusive)?
View 6 Replies
View Related
Apr 10, 2013
I have built a custom .xlam file that I"m using as an excel add-in.
I'd like to write some VBA code which takes ranges from any random worksheet (into an array), and get a range from the xlam (into array).
I can't seem to figure out what combination of This.Worksheet and Active.Worksheet I should use.
View 1 Replies
View Related
Apr 5, 2013
Our company initial is TP, but sometimes it might be combined with a reference number, e.g TP5659
I would like the IF formula to stick pick this up..
I know if it was just the phrase 'TP' I would use =If(a1="tp"...
How do I express that I would like my If formula to work when something 'contains', not an 'exact match'
View 3 Replies
View Related
Apr 1, 2014
I'm trying to use the macro below (twice but with different variables) but everytime I get the error "Compile error: Constant expression required".
[Code]....
View 3 Replies
View Related
May 27, 2009
When opening a new Excel file, it is asking me for a password to an old excel file that was password protected, which I have deleted from my computer. It is still asking for this password every time I open a new or existing file. When I hit cancel it lets me open the file.
View 11 Replies
View Related
Mar 21, 2007
I have a spreadsheet, which has certain worksheets that are password protected. I need to make changes to some of the formulas, and the VBA modules, however I cannot remember the password!! Is there a way of identifying the password??
View 3 Replies
View Related
Jul 23, 2009
I am creating an electronic timesheet. I have created drop downs for times of the day, which then automatically calculates the number of hours worked based on the times selected. The trouble I am having is, I also need to incorporate "Vacation", "Sick Day", etc into the drop down box where the time of day is located.
The sheet works great until someone selects a non-time related answer, such as "Vacation". When this option is selected, the cell that is supposed to contain the number of hours worked says #VALUE! when I, in fact, need it to list a value of 0 for the number of hours worked. Any idea on how to combine my formula =(D6-D5)*24+(D8-D7)*24+(D10-D9)*24 with an IF statement that will automatically assign a value of 0 if a text answer is selected from the drop down?
View 6 Replies
View Related
Jun 10, 2014
I want the first 60 rows of column C to be constant meaning C1, C2, C3, C4..C59 and after 60 rows it should start again with C1, C2, C3.....C59 rather than C60, C61, C62. In other words i+1 but after 60 rows i should be reset to 1 and then again increase by 1. how can i implement these changes
[Code] ......
View 2 Replies
View Related
Oct 13, 2008
spreadsheet has daily hours worked per employee and a weekly total. What is the formula to take the weekly total per employee and separate the regular hours (first 40) and have the overtime show up in the next column (without getting negative numbers for the totals under 40).
View 4 Replies
View Related