Help with calculated column formula- combine strings and convert to date

In my list (SharePoint Server 2013) I have:
'Invoiced Month' column, type of choice (strings with names of months- January, February, March..., December)
'Year' column, single line of text (e.g. 2012, 2013, 2014)
1. I need to create a calculated column which will return combined value of the columns above, but in DATE format e.g. 'Sep-2013' or '01-Sep-2013'.
I then use that newly created calculated column to do this: http://iwillsharemypoint.blogspot.in/2012/03/sharepoint-list-view-of-current-month.html
I am rubbish with formulas, can I have some help with my problem please?

Hi,
Use the formula, I have tested by creating Months column with choice, Year column as numeric and Calculated column as DateTime returned.
=DATE(Year,IF([Months]="January", 1,IF([Months]="February",2,IF([Months]="March",3,IF([Months]="April",4,IF([Months]="May",5,IF([Months]="June",6,IF([Months]="July",7,IF([Months]="August",8,IF([Months]="September",9,IF([Months]="October",10,IF([Months]="November",11,12))))))))))),1)
Before applying the formula few things need to be noted.
DATE(YEAR, MONTH,DAY) will accepts three parameters all should be type numeric(integer).
Create the Year column of type numeric
Create the calculated column of type "DateTime" to return as date
Please mark it answered, if your problem resolved or helpful.

Similar Messages

  • Help with a BB Playbook App- strings and variables

    hello, i hope ive come to the right place for help.
    let me give u some background:
    im developing an app for the blackberry playbook, which in fact just came out today! yay. so anyway, im making an app that will decode fringe glyphs, from the show "fringe." unless u watch it, u prob wouldnt get it, but everyso often they show a symbol in the show, and by the end of the show, they have shown about 5-6 of them. there is a code to them, and each distinc symbol represents a letter. so when u have recognized all 5 symbols, u are able to spell a word, that typically correlates to that epidsode of the show. So, for my app, i have a wall of tiles, with groups of the symbols. underneath this group of tiles, i have 5 blank spaces.
    So, i want a user to be able to watch the show, and as he/she sees a symbol, finds it on the tablet app, taps it, and the corresponding letter will appear in the 1st blank space, and so on, until it spells out an entire word.
    I am relatively new to the programming, so i was hoping that someone could possibly provide me with a list of major steps on how to provide this app. basically, what methods do u use to make each of these things happen. and what is the practical/efficient way of course. So, of course my main question is how i can link each image to a letter with then displays along the bottom, but i have no idea what i would need or how i would do this. Reminder: i am using actionscritpt, if that makes any difference.
    Thank you, and please ask any questions necessary for u to help me.
    PS.
    along with selecting images for the letters, i would also like it to be almost like a toggle button. if that makes any sense, but for now, id like to figure out wat i have stated above.

    heres a screenshot of what i have so far. nothing really except kind of the layout and pics. what i need now is user interaction... lol

  • Lookup column in calculated column formula

    I have a Lookup column(Discountfirst) which has Number.
    I also have another Calculated column(Finaldate) with Resulttype DateTime.
    One more column(DateofReceipt) in Date.
    My Calculated column formula looks like this
    =(DateofReceipt)+(Discountfirst).
    I get an error
    "One or more column references are not allowed, because the columns are defined as a data type that is not supported in formulas".
    I googled and came to know I can't use Lookup Column in Calculated field.
    Any suggestion how can do this ?

    This can't be done using calculated columns because calculated columns can only be used for columns on the same list.
    Using SharePoint Designer Workflows you can just use Create List Item and Update List Item actions so that whenever a user adds a value the item will be added in another list's column which contains the previous amounts already.
    http://stackoverflow.com/questions/16295567/how-to-create-calculated-column-with-data-from-another-list
    https://social.msdn.microsoft.com/forums/sharepoint/en-US/01989169-eac7-4f28-809d-6e5af400fb03/lookup-column-to-calculated-field-showing-string-at-beginning
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Help with calculated dimension member

    I am trying to create a (custom) dimension member using a simple calculation (subtraction e.g. member1 - member2) in AWM 9.2.0.4 following the example given in the Oracle OLAP DML Reference 10g (using DML). I could not find any articles relating to this for 9i. Although the custom member is easily added to the dimension, I could not populate it with the specified calculation.
    I need to enable the analytic workspace for OLAP API and BI Beans. Can anyone help?

    Hi,
    Use the formula, I have tested by creating Months column with choice, Year column as numeric and Calculated column as DateTime returned.
    =DATE(Year,IF([Months]="January", 1,IF([Months]="February",2,IF([Months]="March",3,IF([Months]="April",4,IF([Months]="May",5,IF([Months]="June",6,IF([Months]="July",7,IF([Months]="August",8,IF([Months]="September",9,IF([Months]="October",10,IF([Months]="November",11,12))))))))))),1)
    Before applying the formula few things need to be noted.
    DATE(YEAR, MONTH,DAY) will accepts three parameters all should be type numeric(integer).
    Create the Year column of type numeric
    Create the calculated column of type "DateTime" to return as date
    Please mark it answered, if your problem resolved or helpful.

  • Help with writing a formula

    Hi all,
    I am creating a report, and need help with writing a formula...
    I am creating a report that shows how many visits/touches our reps have made to various grade accounts. It is broken down by calendar week, and I currently have a weekly "goal" number set that the reps have to meet. That "goal" number increases each week to keep a running total. (example: week 1: 7, week 2: 14, week 3: 21)
    I have created some different formulas and one is this:
    SUM("Activity Metrics"."# of Activities" BY Date."Calendar Week")
    What this shows me is how many "visits" there are per calendar week to customers, however it show me the total for all reps per week.
    What I need is that total to show, but totaled for each rep individually.
    What I was trying is this:
    SUM("Activity Metrics"."# of Activities" BY Date."Calendar Week") BY Employee."Employee Name"
    But...I keep getting an error.
    Any suggestions?
    I have the reporting book by Lairson, and have been referring to it...but my brain at this point is fried.
    Thanks in advance for any help...(please forgive...I am new to OnDemand, and I am sure this is easy)

    Thanks for helping!
    I created this formula as a column: SUM ("Activity Metrics"."# of Activities" BY Date."Calendar Week"), it is called "total number of visits per week" and it shows the totaled number of visits that all the reps have done per calendar week. For example: Week 1: 10 visits, Week 2: 37 visits, Week 3: 20 visits.
    What I would like to do is take that column and break it down further, to show instead how many visits per week by sales rep there have been
    So what I was trying was to take the "total number of visits per week" (SUM ("Activity Metrics"."# of Activities" BY Date."Calendar Week")) and use "Activity Owner" (Employee."Employee Name") to break it down further.
    What I need to use is the total number of visits each rep has per calendar week.
    I think I am getting the error because you can't use "BY" twice in a formula?

  • I need help with creating some formulas

    I'm not sure if anyone around here can help me, but I'm trying to create a Numbers document and need some help with creating a formula/function.
    I have a column of amounts and I would like to create a formula which deducts a percentage (11.9%) and puts the result in another column.
    If anyone can help me, it would be greatly appreciated.

    Here is an example that shows one way to do this:
    The original data is in column A.  In column B we will store formulas to adjust the amounts:
    1) select the cell where you want to formula (in this case cell B2)
    2) Type the "=" (equal sign):
    3) click cell A2:
    4) now type the rest of the formula which is: "*(100-11.9)/100"  that is asterisk, then open parenthesis, 100 minus eleven point nine close parenthesis forward slash  one hundred
    The Asterisk is the multiply operator  (times) and the forward slash is the division operator (divide)
    now hit return.  select cell B2 and hover the cursor over the bottom edge of the cell:
    drag the little yellow dot down to "fill" the formula down as needed.

  • How to read a data file combining strings and data

    Hello,
    I'm having a data file combining strings and datas to read. I'm trying to read the filename, time, constants and comments into four seperate string indicators (the lines for the comments varies for different files). And read the data into a 2-D numeric array. How can I do this? Is there any function that can serch special characters in the spreadsheet file so I can exactly locate where I should start reading the specific data. The following is how the data file appears. Thank you very much.
    Best,
    Richard
    filename.dat
    14:59:00 12/31/2009
    Sample = 2451
    Frequency = 300, Wait time = 2500
    Temperature = 20
    some comments
    some comments
    some comments
    some comments
    some comments
    7.0000E+2    1.5810E-5
    7.0050E+2    1.5400E-5
    7.0100E+2    1.5500E-5
    7.0150E+2    1.5180E-5
    Message Edited by Richard1017 on 10-02-2009 03:10 PM
    Solved!
    Go to Solution.

    Hi,
         I'm fairly new to the NI forums too and I think you just have to wait longer.  Your post was done right.  I do a similiar function as to what you are talking about except I read in numbers from a file.  I create an ini file (just a notepad file of type *.ini) that is is set up with sections inside brackets [] and keys with whatever name followed by an = sign.  You may be able to use a *.dat file too, I just haven't.  Then the vi attached goes to that file and reads the keys from those sections.  You just repeat for the different sections and keys you want to read.  You can use similar provide VI's to write to that same file or create it.  Let me know how that works. 
    Attachments:
    Help1.ini ‏1 KB
    Help1.vi ‏10 KB

  • Calculate Date/Time Difference in a Calculated Column Omitting Weekends, Holidays and Non-Working Hours

    I am looking for a formula to use in a calculated column that calculates the difference between two date/time fields while excluding weekends, holidays and non-working hours
    6/1/2010 9:43 AM - 6/7/2010 1:45 PM
    Here is the closest that I have gotten; however, this formula gives me a result of 96:
    =IF(AND((WEEKDAY([Resolved Date],2))<(WEEKDAY(Created,2)),((WEEKDAY(Created,2))-(WEEKDAY([Resolved Date],2)))>1),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved Date],"D")+1)/7,1))-3),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved
    Date],"D")+1)/7,1)*2))*24)
    Any and all assistance is greatly appreciated!

    I don't know how to exclude holidays but i exclude weekends(Sat&Sun)-
    IF(ISERROR(DATEDIF([Start Date],[End Date],”d”)),””,(DATEDIF([Start Date],[End Date],”d”))+1-INT(DATEDIF([Start Date],[End Date],”d”)/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start
    Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End
    Date])=7),1,0))
    -Thanks
    Swapnil

  • Need urgent help!!!! (combine prompt and formula)

    Hi,
    I am using Oracle Business Intelligence 10.1.3.3.2, and creating some reports from answers. I desperately need to combine
    prompt and formula on some column.
    I need to use prompt in my formula on some column.
    Need urgent help !

    You can use the presentation variables to pass the value of the prompt into the report or any column formula.
    In the dashboard prompt you see an option called "Set Variable" where and you need to give a name to the variable.(Say Var_value)
    Now the value of the variable can be simply referenced using the syntax @{var_name}{10}. Here '10' being the defualt value which is optional you can simply reference using @{var_name} and you have the value of the prompts passed.
    Hope it works
    Thanks
    Prash

  • Need help with af:column and skinning

    Hallo,
    ADF Faces and skinning is in general a great opportunity to get projects done - thx for this.
    - I use a af:table with af:column with sortable="true".
    - This works great, but the customer want's to have the icon for sorting to the left side of the label.
    - I have created my own skin for this and can change the sorting icon, but I cannot place it to the left side of the label:
    af|column::sort-ascend-icon {
    content:url(/skins/espa/sort_ab_h.gif);
    Has anyone done this? Is this possible?
    Thx, Willi

    Looking at the source gives a clear picture - it can't be done.
    Now I am switching over to less comples jsf components and additional implementations.
    Thx, Willi

  • I need help with a complex formula

    I am a current student attempting to keep track of requirements for college along with my courses that I am taking. I have two tables. I am trying to put an X in Table2:A2 if the data from Table2:B2 AND Table2:C2 matches Table1:SUBJ AND Table1:CRS. The match in Table1 has to be in the same row since there are duplicates. So a check mark will appear in Table2 once I've taken the class and it shows up in Table1. Does anyone have a equation that would make this work?
    Here's a link so you can download the spreadsheet in Numbers '09 and fool around with it.

    My error.I was reading "The match in Table1 has to be in the same row since there are duplicates," and overgeneralizing. I was wondering about the "complex formula" part of the request.
    Here's another go—with a 'complex' formula, and a couple of 'helper columns.'
    Column D on both tables contains a simple formula that combines the subject and course number into a single string.
    =B&" "&C
    Table 1::Column A contains the more complex formula:
    =IFERROR(IF(AND(MATCH(D2,Table 2 :: $D,0)>0,D2<>" "),"✓",""),"")
    IFERROR traps the error that occurs when there's no match.
    the D<>" " catches the rows where no subject and course number has been entered in the first table.
    Descriptions and further examples of the functions used are available in the iWork formulas and Functions User Guide, The guide is downloadable via the Help menu in Numbers.
    Regards,
    Barry

  • Help with difficult numbers formula

    I need help with a formula im trying to create in numbers on my iPad. I'll try to explaine the best I can and attach images to help.
    Ive created a spreadsheet to do rotas for work. Currently it calculates the shifts each person does and adds it to the total for that persons week in the end column and the total for the day in the bottom row. If the shift is equal to or more than 8 hours long then an hour needs to be deducted as they have a lunch hour that is unpaid for. This is currently done by a hidden row under each persons row that calculates the shift for that person on that day with the given conditions. Also is a 'H' (for holiday), 'RDO' (for requested day off) or 'X' (for unable to work this day) is placed in any of the cells the formular will return value 0. What I am wanting to do is to get rid of all the hidden rows and still have the total calculated in the end column for that person and the day in the bottom row. Is there a way of doing this without having to copy the formula in the hidden cell and adding them in series for each day to achieve the total? I hope this makes sense. Ive attached images to try and help with the explanation.
    Thanks in advance

    Hi Gary,
    I believe that it is generally good practice to choose several smaller formulas over large and complex ones. As you noted in your question you could add your daily IF()s to get the result you want but it would be an unwieldy construction. I also suspect that the daily hours for each employee could be useful info.
    I hope things are working out for you.
    quinn

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • Help with a column form

    Hi!!
    I have this Data model:
    http://img236.imageshack.us/img236/5250/dibujo0eq.gif
    and I want to add a formula Column with this pl/sql cod:
    function CF_1Formula return Number is
    begin
    return :correctas*100/:count_ccnfac;
    end;
    When i Tryied to do this i have this error:
    rept-1517: Column "porcent_correctas" references colum "correctas", wich has incompatible frequency.
    I know what causes this problem, but i don't know how to resolve it because the colums are in diferent querys.Please, somebody help me, I'm new in this and I need it for my work.
    Bye, and thanks to all.

    Excellent to have a reference to a picture!
    A formula column can reference fields in it's own group or the groups above it. So, put the formula column in group G_COUNT. This way you can reference both :correctas and :count_ccnfac.

  • Sync to SharePoint Workspace with Calculated columns

    I have a document library (in a SharePoint 2010 site) with a calculated column that will not Sync to the SharePoint Workspace 2010.  Once I remove the calculated column, it syncs fine. 
    The calculated column displays an image in the document library depending on the state:
    ="<center>"&IF(State="Not Started","<img src='http://rcssportal.co.riverside.ca.us/sites/teammate/PublishingImages/NotStartedIcon.png' border='0'/>",IF(State="In Progress","<img src='http://rcssportal.co.riverside.ca.us/sites/teammate/PublishingImages/InProgressIcon.png'
    border='0'/>",IF(State="Prepared","<img src='http://rcssportal.co.riverside.ca.us/sites/teammate/PublishingImages/PreparedIcon.png' border='0'/>",IF(State="Reviewed","<img src='http://rcssportal.co.riverside.ca.us/sites/teammate/PublishingImages/ReviewedIcon.png'
    border='0'/>",IF(State="Edited Since Reviewed","<img src='http://rcssportal.co.riverside.ca.us/sites/teammate/PublishingImages/EditedSinceReviewIcon.png' border='0'/>",IF(State="Conflict","<img src='http://rcssportal.co.riverside.ca.us/sites/teammate/PublishingImages/ConflictIcon.png'
    border='0'/>","")))&"</center>")))

    Hello Thomas,
    Maybe you are experiencing this issue:
    http://office.microsoft.com/en-us/sharepoint-workspace-help/why-is-this-sharepoint-list-not-synchronizing-all-item-fields-or-view-updates-HA010388327.aspx?CTT=1
    As far as I know it is not a limitation of SharePoint Workspace 2010:
    http://office.microsoft.com/en-us/sharepoint-foundation-help/synchronize-sharepoint-content-with-sharepoint-workspace-HA101854201.aspx#_Toc263166752
    - Dennis | Netherlands | Blog |
    Twitter

Maybe you are looking for

  • Operator in Select query (+)=

    Hi All, I am trying to understand what this sql query means. SELECT person_id, last_update_date FROM per_addresses WHERE per_addresses.primary_flag(+) = 'Y' I dont userstand the per_addresses.primary_flag(+) = 'Y' part .. what does this (+) before eq

  • Unreported Transaction timeout on commit (Oracle)

    I'm expecting an Oracle error upon commit using "deferred constraints" and           executing an INSERT that should result in a constraint violation. I am not           seeing an error but the transaction hangs for 30seconds (JTA timeout           s

  • Mysql Mac Mountain Lyon

    I have problems to reinstall MySQL on Mac OS X after it was running on my system. I uninstalled it because the PreferencePane wasn't working as expected, using the procedure described here: http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-

  • Intellegent F4 help for contacts in Opp

    Hello All, We have the following issue and I hope to get answere from someone. In PCUI on Opportunities Partner Tab when we select contact person Partner Function and click on partner Input Help link it opens a BP search window and user can pick any

  • "Take Picture" workflow -- what cameras are supported?

    Hi everyone, I'm new to Automator, and trying to build a workflow to send a live picture from a digital camera into a photo program. Apple has the "Take Picture" component, but I can't seem to find a list of cameras that are compatible with it. Does