Regex - range of numbers

HI,
I am looking for following regex condition:
Include (A-Z) or (1- 92) but exclude 25, 45, 65.
Plz reply asap if there is a solution with regex ??
Thanks

Hemanth.452 wrote:
HI,
I am looking for following regex condition:
Include (A-Z) or (1- 92) but exclude 25, 45, 65.
Plz reply asap if there is a solution with regex ??Why ASAP?
The answer is "yes", b.t.w.
; )

Similar Messages

  • Using the IF function with a range of numbers

    I am working with the IF function and trying to get it to work "if" the number I'm examining is within a range of numbers.
    Example:
    If a wigit costs between $1000 and $1999, then a discount of $100 is given
    If a wigit costs between $2000 and $2999, then a discount of $150 is given
    If a wigit costs between $3000 and $3999, then a discount of $225 is given
    And so on.
    If cell A1 always holds the current cost of the wigit being sold.
    cell B1,B2,B3 holds the value of the discount values respectively.
    In cell C1 I would like to return what the current discount value is to be given for the wigit price in cell A1?
    How do I do this using the IF function or is there another way?
    Thanks,
    Ryan

    HI Ryan,
    In this post you have, except for the issue noted by Badunit, the basis for the discount table described by Wayne:
    I'm trying to devise a way of knowing what Cash Card a customer will receive depending on the amount of the purchase, based on the following table:
    $0         to $999 purchase         =      $50 Cash Card
    $1,000 to $1,999 purchase     =     $100 Cash Card
    $2,000 to $2,999 purchase      =     $200 Cash Card
    $3,000 to $3,999 purchase      =      $300 Cash Card
    $4,000 to $4,999 purchase      =      $400 Cash Card
    $5,000 to $5,999 purchase      =     $550 Cash Card
    $6,000 to $6,999 purchase     =      $700 Cash Card
    $7,000 to $7,999 purchase      =     $850 Cash Card
    $8,000 to $8,999 purchase     =      $1,000 Cash Card
    $9,000 to $9,999 purchase     =     $1,200 Cash Card
    $10,000 to   UP   purchase     =     $1,500 Cash Card 
    To take care of the issue noted by Badunit, you need to revise the top line to state the minimum purchase necessary to earn a cash card, then add a line above that to handle purchases under that amount. I've arbitrarily chosen a $500 minimum, which results in these two lines:
    $0             to $499 purchase        =      $0 Cash Card
    $500         to $999 purchase         =      $50 Cash Card
    To write this as Wayne's table, you need to remove all of the text (including the $ currency markers), the top end of each range, and the = sign. What you're left with is two columns of numbers: The bottom number of each range of values, and the number telling the dollar amount of the cash card for that range. Here's your table, edited to make it work with LOOKUP:
    Here is a second table (Main), containing only the labels and the two cells involved in the calculation of the cash card amount. The Purchase amount is the amount used in your example. The Cash Card amount is produced by the LOOKUP formula below the image.
    Purchase price is in cell B1 of the table "Main". The LOOKUP formula is in B2:
    B2: =LOOKUP(B1,CC Amt :: A,CC Amt :: B)
    LOOKUP acts essentially as you request in your post containing the iPad image with the time shown as 1:46. But it takes a much simpler approach.
    Here's the syntax:
    LOOKUP(search-for,search-where,return-from)
    LOOKUP gets the search-for value (2535) from cell B1.
    It looks in column A of the table "CC Amt" for the largest value less than or equal to the search-for value, and finds 2000.
    It returns the value from the same line of column B (200).
    Below are two more examples. Main-2 and Main-3 are copies of the Main table. Both contain exactly the same formula as Main, but have had a different Purchase price amount entered. LOOKUP uses the same CC Amt table as is used above, and returns the appropriate Cash Card value for each of the two new amounts:
    You may, as implied in your 1:46 post, use a pair of cells to calculate the Cash Card amount for each widget in the purchase, then total the Cash Card amounts, or you may use a single pair of cells, one containing the total purchase amount, the other containing the Cash Card amount due for that total. That choice is yours. The formula is the same for either case.
    Regards,
    Barry

  • How do I select a range of numbers using IF function

    I am trying to select a name in a cell if the value of another cell is either a 5,6,7,8 or 9.  I have had success when I have just wanted numbers above 9 or below 5 by using formulas
    IF(Table 1::C3<5,T(Table 1::A3),T(Table 1::A2))
    And
    IF(Table 1::C3>9,T(Table 1::A3),T(Table 1::A2))
    But for the life of me can't get the range of numbers in between.
    I have tried including AND and OR functions in multiple ways but to no success.  I know I am overlooking some simple thing, I have tried scratching for nested if functions but no help there either, and the information file in numbers is horrendously useless.
    Please help.  I am using an ipad btw.

    This forum is generally for iPad and iOS problems. I doubt that you'll get an answer here.
    Furthermore, you don't say what app you are using. If Numbers, you should post here https://discussions.apple.com/community/app_store/iwork_for_ios
     Cheers, Tom

  • Find a range of numbers in one cell and output in another

    Here I am again with something I just can't seem to find an answer to:
    I need to find the range of numbers in one cell and place that value in another, like so:
    Cell A1 says: "3 - 8"
    Cell A2 returns: 5
    Any simple formula to do this?

    Hi gunkie83,
    Yvan's formula does perform properly. He stated: Here the decimal separator is comma so Numbers use the semi-colon as parameters separator but the formula is OK. CAUTION, here I left the semi-colons.
    Yvan is in France using the French version of iWork. For the U.S.A. semicolons need to be changed to a comas as I have in the following formulae.
    =VALUE(LEFT(A,SEARCH("-",A)-1))-VALUE(RIGHT(A,LEN(A)-SEARCH("-",A)))
    this returns -5
    =ABS(VALUE(LEFT(A,SEARCH("-",A)-1))-VALUE(RIGHT(A,LEN(A)-SEARCH("-",A))))
    this returns 5
    One important observation in cell A2 the text reads as 3 - 8 not 3-8. Also it can be inputted as 3 -8 but not 3- 8. Watch those spaces. Fun huh.
    Hope this helps. Again Yvan thank you.
    Cordially,
    RicD

  • Printing a range of numbers

    Dear All,
    I have to print a range of numbers that I give in selection screen, say 1 to 20 in two columns (on a sticker).
    Kindly give me the logic, how to go about it.
    Regards,
    Alok.

    Hi Alok
        you can do like this
    TABLES : caufvd.
    SELECT-OPTIONS  :  s_auart FOR caufvd-auart. 
    write : "from",s_auart-low , "to", s_auart-high.
    Regards
    Wiboon

  • Averaging a range of numbers

    I'm looking to try and average a range of numbers, but instead of doing it by certain rows (that is, average rows A1 through A30), I'd like for Numbers to average cells if they fall into a certain numerical range (that is, average cells whose values are 1-30, but whose rows might be A1 through A70 or A1 through A42--you don't know). Since my cells are numerically ordered, I could go through and find myself the cells that fall into the range (is it A70 or A42?), but I have a few thousand rows so that's really not economical in terms of time. Could someone help me to figure out the function to average cells based on their numerical value?
    Thanks!

    Here's how you might set up the formula:
    The formula in B3:
           =AVERAGEIFS(Table 1::A,Table 1::A,">"&B1,Table 1::A,"<"&B2)
    It's a little tricky because you need the " " in the proper places.  You could hardcode the values into the formula itself with something like ">0" and "<31" but it's generally good practice to put the conditions in cells so you can vary them as needed.
    SG

  • IF Else (javascript) with a range of numbers

    I am creating form fields in a PDF using Acrobat.  There is a field which you enter an amount (1-20, 21-100, 100+) and depending on what is entered the cost will be different.  So if 1 thru 20 units are entered the cost will be $199 per unit, 21 thru 100 units the cost is $175 per unit and 100+ units the cost is $150 per unit.  The line on the document looks like:  Number of Entities___ X Price per Entity___= Total___. 
    This is what I have so far to get the price;
    if (this.getField("No. of Entities").value == '1') {
    event.value = 199
    } else if (this.getField("No. of Entities").value == '21') {
    event.value = 175
    } else if (this.getField("No. of Entities").value == '101') {
    event.value = 150
    } else {
    event.value = 0 // Default value here
    I have it working for a single number, I just can't get a range of numbers.
    Any help would be great, thanks.

    The problem is in the logic of your condition.  This will only hit when you have the value of 1, 21, or 101.
    I'd suggest a different set of logic, based on <= operators
    if (this.getField("No. of Entities").value <= '20') {
    event.value = 199
    } else if (this.getField("No. of Entities").value <= '100') {
    event.value = 175
    } else if (this.getField("No. of Entities").value >= '101') {
    event.value = 150
    } else {
    event.value = 0 // Default value here
    or something along those lines.  I would also imagine that having the operators be numeric (no quotes on the constant) would be more effective.
    But this is general JS advice and not tried within a form.
    Also, I have a question for you.  Are you designing this as an PDF form inside Acrobat, or are you using LiveCycle Designer?  That information will help when we move this issue into the proper forum.

  • How do you create the equivalent of a named  range in Numbers for iPad?

    At first I didn't think Numbers could handle named ranges but when I look at the formula written for the "Personal Budget Template"  The "Actuals" column is calculating using named ranges but I am not sure how the ranges were created...  In any case it does appear that there is a way.  Does anyone know how?

    Those technically are not named ranges. Its using the information in the "header" rows. Once you make a row a header row and sum it (or include the whole colun in some function). It will use the data/name in the header row in the equation to make it clearer. I do not think you can make named ranges in Numbers.
    I made a test excel workbook using two formulas to sum a range, one with named ranges one without and sent to my ipad, when i opened it up...and downloading... yep...  it converted the named range to a regular range with letters and numbers. no named ranges support.
    But learn to use your header and footer rows to get the same affect in many functions.
    When i assign both header rows and columns to a table, it combines them into one string to show "Jan 2001" when I had a header column with Jan in A2, and a header row with "2001" in B1, then used the value in an equation.
    The one your looking at I think says something like "=Sum(actuals)". that formula is in a designated footer row, and has a designated header row. at the top of that column is the label "actual". if you look at the difference column formulas, you will see how it combined header rows and columns into a single text string and use it to cross reference the cell being used.
    Jason

  • Regex to match numbers but not characters

    Hey all,
    I brain must not be working right or something but I cannot for the life of me figure out how to get a regex to match numbers, but not characters.
    e.g.
    123456
    would match, but
    123abc
    would not. Essentially what I want to do is take a string and only return a match when the string has numbers but no characters.

    No, it doesn'tYes it does.
    "123abc".matches("\\d+");
    "abc123".matches("\\d+");
    "123".matches("\\d+");
    false,false,trueExcellent example demonstrating the output of a method.
    However the suggestion above was referring to a regular expression, not a method.
    And the above regular expression does match with the following methods
    "123abc".replaceAll("\\d+", "xxx");
    "abc123".replaceAll("\\d+", "xxx");
    "123".replaceAll("\\d+", "xxx");
    The correct regular expression to match only digits is....
    ^\d+$

  • Hunt Pilot - range of numbers

                      HI,
    I have a simple question.
    I'm using call manager version 8.6. I have configured hunt pilot as range of numbers instead of specific number.
    eg: 898949X
    it wil work properly right. I want to confirm.
    I tested it is working fine.

    Yes, it is allowed to use special characters in Hunt Pilots and documented:-
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/7_1_2/ccmsys/accm-712-cm/a03rp.html#wp1043520
    - Basant

  • Formula or solution to get the range between numbers in on column (KF)

    Hello All,
    I am in need of a solution (formula) to get the range of numbers in one column of query results.
    I have a variable number of sales orders and three keyfigures that show the number of days between when the order was received and when the customer received the order.
    I need to get the range of days from each keyfigure column
    ex.
    Sales Order          Days-Order to Box   Days-Order to Release   Days-Release to Box
    SO 11111                       10                                   2                                 8
    SO 11111                       13                                   5                                 8
    SO 11111                       12                                   2                                10
    SO 11111                       16                                   4                                12
    The range for the  Days-Order to Box   Days-Order to Release   Days-Release to Box
                                             6                                     3                                 4
    I have tried using formulas for Min and Max setting the Calculations tab for both Results and Singles Values
    than creating a formula using SUMCT, SUMRT and SUMGT but I get the red X for results.  I have used NOERR(x) and NODIV(x)
    to determine that the formula is seen as having undefined calculations or errors in the logic (I do not get errors when saving the query).
    NOERR(SUMRT (OtB-Max - OtB-Min))
    OtB-Max is a formula that hides the singles values and displays the results as the Maximum number in the column Days-Order to Box
    OtB-Min is the same kind of formula but it displays the Minimum number for the same column.
    Thanks in advance for any suggestions.
    Btw - I have searched this forum and the How-To forum for BI on the SAP site without finding an answer -
    If I have missed one in my search I apologize and would appreciate a link to it

    Hi.
    As I think only use of virtual KF and APA code will help you.
    Regards.

  • How to calculate on MDM 7.1 (Range of numbers)

    Good Afternoon,
    I Have the following scenario:
    We are implementing a products repository that will feed an ECC environment.
    The interface are going to be the Enterprise Portal, so users are going to request for new products on MDM trough Enterprise Portal.
    To reduce the impact on the interface team (PI development) we decided to generate the products numbers inside of MDM (once MDM will be the unique interface to input products).
    The question is about the product number that I'll have to generate inside of MDM, there are two types of products and each one starts with a specific range number (i.e.; FERT = 800000000 and ZSTK = 9000000000).
    Does anybody knows a solution for this situation? I cannot use an AutoID field because I have to guarantee the sequence of each range.
    Regards
    Armando Martines Neto

    Hi Armando,
    Number generation has been one of the crucial requirement with MDM  as we are dealing with master data creation and maintainence in MDM.
    However from mdm 5.5 ver till the latest 7.1 ver of MDM this need has not been fully met.
    So if you need MDM to generate the number range for you you will have to do it through one of the following means.
    - Use of the Qualified Number range feature provided  with the Remote systems.
    - Use MDM Data modelling and JAVA API effectively through Portal.
    1) For using the Qulaified range feature you can generate a number range for your Product master records but you need to take care of the following.
    - This feature works with the Remote system only.So make sure you are maintaining records per the remote system and not directly in MDM.
    - This will generate the Keys only at the time of syndication and not before that.
    - You will be able to see the keys in the syndicated output file only and not in MDM data manager directly.In the DM these keys will be visible only under the Key mapping option and not otherwise.
    You can refer the below links for more info:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/807ce1ba-94c0-2a10-a398-afdfd8135ebd
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0f787f8-11d9-2b10-f789-cffdffa4bab6
    2) The Second method that i suggested would be a workaround by uisng the SAP Portal and MDM Java API.Using this method you can try to maintain the range for every product type with their min and max range in an MDM lookup table and then use these values through the API to increment it one by one to generate a value for every record.This is not a straight forward approach and will require the EP expert for the same.
    Just an dea for a workaround i thought will help.
    Hope it Helped
    Thanks & Regards
    Simona Pinto

  • Can you filter a date range in Numbers 3.1?

    It seems crazy... but I can't figure out how to filter a date range in the new Numbers (3.1).  In other words, I have a column with individual dates e.g. 31-Dec-2012, 29-Feb-2013, 19-April-2004, etc.
    I want to filter it so that ONLY the dates from 2012 show up.
    The thing is that the new filters ONLY seem to let you filter from today's date e.g. between 494 and 692 days from today.  Obviously, that isn't what I want, and it seems very wierd that something so basic would be left out.
    What am I missing?

    In the example below Column A has date values and Column B has a simple filter that displays dates if in year 2012.  Pretty simple, likely too simple.  Not sure what/how you want to display but thought I'd get something started.  The formula in Column B is: IF(YEAR(A2)=2012,A2,"").  You can hide column A if desired.

  • Selecting againt individual number and a range of numbers

    I have a users who inputs 1400 individual material numbers in the selection screen of a query and then 2 ranges of material numbers. The query bombs out with the following error, "<internal error> Receiving from the BW server failed BW server raised exception:System_Failure Do you want to see more information?"
    My first thought is who in their right mind would insert 1400 individual material numbers.  But the report runs fine with the 1400 individual numbers.  It when you add a range to the selection with the individual numbers that a problem occurs. 
    Has anyone had this problem?  Or does anyone have any advise on how to correct this problem?

    I've narrowed it down even further.  I can insert 100 materials with to selections.  Everything is ok.  I run it with 200 materials and the same 2 selections.  NOT OK.  Then I tried with only 1 of the selection ranges NOT OK.  If I run just the 200 Material it's OK.  I went to st22 and got the error:
    An exception that could not be caught occurred.
    What happened?
    The exception 'CX_RSR_X_MESSAGE' was raised but was not caught at any stage in
    the
    call hierarchy.
    Since exceptions represent error situations, and since the system could
    not react adequately to this error, the current program, 'SAPLRRMS ', had to
    be terminated.
    Any Ideas?

  • Charting a range of numbers

    Hi,
    I'm hoping for some help with a chart. I want to chart medical test results, showing the normal range, and also the patient's results. For instance, the normal levels of taurine run from 150 to 550. The patient tests low at 65. I would like to have a bar graph that includes a zero baseline, but with a colored bar running from 150 to 550 to indicate the normal range, and some kind of mark at 65 to indicate the test results. Is there any way to do this in Numbers?

    Is that what you want?
    I superposed two charts.
    The first one charts A2…B6
    The second charts C2…D6
    In the second I use white as fill color,
    background color is none,
    I removed some text items
    and I defined the maximum Y value to 500.
    No offense, I didn't check if the displayed values are true ones. In fact I don't know what is taurine
    Yvan KOENIG (from FRANCE mercredi 9 juillet 2008 17:13:24)

Maybe you are looking for

  • Camera roll photos are grey

    My camera roll is showing a lot of blank grey photos. Every time that I sync my phone to iPhoto, and I delete the photos from the camera roll using iPhoto, it leaves behind one of these grey boxes. The only photos that actually show, as seen in this

  • Email addresses as parameters.

    Hi, I know this should really be in the SQL forum-but it is SQL in BIP, so I thought I would try it here first! I have a report with a parameter for an email address, the parameter is referenced within the sql statement as a variable (&p_email_addres

  • Getting EM incident Service ID in email template

    Hi Guys, We have monitoring for OSB and when a proxy service is down, an incident is created. Is it possible to get the "Service ID" in the email template? If yes, what is the attribute/label for this? Given below is the Incident Details from Inciden

  • Partial coupon payments

    Hi, Gurus I came accross a problem. Hope for your piece of advice We have got some bonds and the issuer paid a coupon amount partialy - different amounts and dates. Eg, we have got coupon flow $100 on 01.05.2011 which is in fact paid by the issuer wi

  • JAVA ME version Open Source

    Hi, I am new to JAVA technology. I want to use open source version of JAVA ME along with CDC1.1 and FP1.1. Can you please provide me links to download these open source packages. I am planning to cross compile and use it on Linux. I hope I can downlo