Equate text to number

Hi!
I'm using Numbers version 3.2.2
I was wondering if there was a way to equate a text to a numerical value. For example if I  I write "sugar" in any given cell, Numbers sees it as -3.
I'd like to be able to do sums of these things. For example (image), how could I make it so that the Items column work as numbers? Instead of having to put the raw numbers it. The image simulates the sort of thing I'm looking for.
Thank you!

Hi merryface,
You want to use VLOOKUP() and a lookup table.
Lets see if a screen shot will show.
Table 1 is my lookup table. I have entered all the values I want.
Table 2 is the table I am using the info in. I enter the ingredient ( you might consider a popup menu made from your values in Lookup table) and the formula in Column B returns the value. The formula is =VLOOKUP(A1,Table 1::A:B,2,FALSE)
Hope this helps,
quinn

Similar Messages

  • Database error text: invalid number

    Hi Gurus,
    I am calling a procedure proxy from ECC and it is giving me a short dump:
    Error 339 has occurred while executing database procedure
      ""_SYS_BIC"."Krishna_Demo_Proj.Model/KC_GET_MARA"" on the
    current database connection "R/3".
    Database error text: invalid number: ''
    Triggering statement: "dsql_open_proc"
    I have created a table with only one field.
    Mapped the Data types after creating the Procedure Proxy
    Which data type I need to use? I tried with lots of combinations but, still the same error.
    Regards,
    Krishna Chauhan

    Hi Srinu,
    I have used NVARCHAR 18 and corresponding to that CHAR18 is used.
    Please see the attached screen shots.
    Regards,
    Krishna Chauhan

  • How to change Text to Number in Excel 2013

    Hi,
    I imported and parsed a large CSV file (75000 rows) with 4 columns as numbers. They arrive in Excel as text with a "." as decimal separator. In Excel options, I set the decimal separator to "." but data remains as text. I could edit and
    enter each cell to convert it as number but I have 4 x 75000 cells...
    Any idea ?
    Thanks for your help

    Hey Wlid1966,
    This simple action, I've included some links that explain you step by step:
    http://www.extendoffice.com/documents/excel/582-excel-change-text-to-number.html
    http://www.extendoffice.com/documents/excel/671-excel-change-number-to-text.html
    http://www.accountingweb.com/article/three-ways-convert-text-based-numbers-values/222008
    Please Mark This As Answer if it helps to solve the issue
    Tzuri Ben Ezra | My Certifications:
    CompTIA A+ ,Microsoft MCP, MCTS, MCSA, MCITP
    |
    FaceBook: Tzuri FaceBook | vCard:
    Tzuri vCard | 
    Microsoft ID:
    Microsoft Transcript 
     |

  • Interactive report sort text as number

    Hello,
    I was wondering if it is possible in an Apex interactive report to sort text as number?
    For example, a series of text rows:
    4
    10
    2
    would sort as:
    10
    2
    4
    if it were text. What I would like to see is:
    2
    4
    10
    How could this be done?
    Thanks.

    If your column contains numbers only, you could use TO_NUMBER (column_name) column_name to convert it to a numeric value and it will sort it properly.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Short text and number of outline not maintained error in BAPI_ENTRYSHEET_CREATE

    Hi Experts,
    I am using BAPI BAPI_ENTRYSHEET_CREATE' for creation of service entry sheets.
    I passed below data into the respective parameters
    Entry Header Sheet -
    SHORT_TEXT                
    THIS IS SAMPLE TEXT
    PO_NUMBER                 
    231002130
    PO_ITEM                   
    00010
    And just executed BAPI, I am able to get the ENTRYSHEET NUMBER.
    Next I tried passing below data again
    Entry Header Sheet -
    SHORT_TEXT                
    THIS IS SAMPLE TEXT
    PO_NUMBER                 
    231002130
    PO_ITEM                   
    00010
    ENTRYSHEETSERVICES:
    QUANTITY                             
    10.000
    BASE_UOM                  
    AU
    And then executed - I am getting an error saying 'Short text and number of outline not maintained'.
    My input file to  BAPI contains the structure as  PO, Item Number, Short Text for Service Entry sheet and Quantity.
    Please suggest if any ideas.
    Regards,
    Rafi

    Hi All,
    I resolved this. Please refer screen shots below for solution
    Below screen shots show about the data to be passed to BAPI_ENTRYSHEET_CREATE
    Regards,
    Rafi

  • My iphone 5 will not text one number

    Have seen previous threads on this issue but none have resolved this matter for me.
    There is one number that I cannot text, the other p contact a Samsung GT-S3350(Tesco) mine is on Vodafone.  I can receive texts and calls and can call the number, but texts fail to send and are all marked as Not Delivered.
    I have turned both phones on and off, turned on/off iMessage, 3G, data roaming and have reset network settings. I have also deleted the contact from my phone and the other phone.
    My wife has an iphone 5 and doesnt have any problems texting the number.
    Can anyone help?
    Thanks!

    I did solve the problem. I assumed because the message bubble was green that my friend had another type of phone. I was completely wrong! After I just made sure iMessage was on and restarted my phone it works just fine! So I guess iMessage was the problem ☺️

  • I cannot text one number in my phone that I have in the past...

    Since last week I cannot text one number in my phone, yet if I move my SIM into another phone it sends... any ideas? have tried wiping the SIM, re-starting the phone...

    Nevermind! I found out I can get a docking station that you can hook up from there to charge it! YEAH!

  • Cannot text one number

    I can not text one number and it is driving me crazy!!  I recieved a message that says "you can only send messages to fixed dialing numbers".  I do not know what that means.  I can send texts to Verizon, and T-Mobile phones.  I can send and recieve calls from the number but I can not text.  
    This is recent that this has happened.  I was able to send and recieve texts from this one numbers, but it seems as of OCtober, I can not.  
    Is anyone else having this issue??  It is truely driving me crazy!!

    Try checking Menu / Settings / Call Settings / FDN and make sure fix dialing option isnt enabled, if this is on this can restrict in and out going items.. 
    Another thing to check with Verizon and make sure no restrictions is setup on your accounts or you can check and make sure you havent added that number to the block list on the MyVerizon area of your account.

  • How to add text after number in the same cell? "200 units", "3Kg", "17 sqm"

    Dear Sirs,
    I have problem with adding text after a number in the same cell.
    For instance, in excel I am able to do this:
    200 units -----> this is on the same cell. Any number I type, "units" will follow automatically.
    I know that we can just type "200 units" but its in text format so it cannot be calculated supposedly I want to multiply it by others number.
    I know that we can do this by splitting into two cells, one on the left for the number "200" and another one on the right for the text "units".
    It would be helpfull if we could do this function such as "20 years", "3Kg" etc.
    Sorry to trouble you all.
    Thank you
    Q

    This is a case of uneven implementation in Numbers. This sort of functionality is available to format numbers used to label axis ticks on various charts, but not to format numbers in a cell. This feature should be requested.
    As an aside, perhaps a spreadsheet that actually managed numeric units as part of the calculation would be powerful and useful in avoiding formula bugs, something like is available in Google calculations. If you are unfamiliar with this, try one of the following examples typed into any Google search entry field:
    150 miles per gallon in liters per 100 kilometers
    100 * 20 yards / 40 minutes in mph
    Read more at http://www.google.com/intl/en/help/features.html#calculator

  • Text to number and decimalSeparator

    Hi, I need to convert a text (in a textImput) to Number.
    Some times the user type: 1000.10 or 1000,10 do represent the
    same number (one thousand and 10 cents)
    the problema is that 1000,10 gives me NaN using the simple
    way: Number(mytxt.text)
    How can I solve this problem?

    If there is no thousands separator (Like: english 1,000.00
    represents one thousand; spanish/german: 1.000,00 represents the
    same thousand):
    I'd replace the comma with a decimal point (using indexOf to
    find it), and later use Number() to convert:
    s = textInput.text;
    if (s.indexOf(",") != -1)
    s = s.substr(0, s.indexOf(",") + "." +
    s.substr(s.indexOf(",")+1, s.length - 1 - s.indexOf(",");
    number = Number(s);
    I hope is readable :-), and helps

  • Access Web App - Need some advice with query (text to number problem)

    In an Access Web App I want to create a query.
    I have two tables which are related but in a bit complicated way. For some reason I have a text field in which I save a number. This number relates to the ID of another table. When I combine these two tables in a query, it's not working because the textfield
    cannot query the (ID)number field.
    Is there a way, in this query so that I covert the text field to a number so the query will work?
    I tried to do it with the "Parse" function but no luck, so far.
    Thanks, Mike

    Hi Mike,
    Based on the description, you want to create a query by joining a text filed with number filed?
    Did I understood correctly? If so, as far as I test, it works in Access 2013 web app. Here is the screen shot for your reference:
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Replace text with number

    Hi
    i have 2 columns from flat file
    0amount       number
    10000          
    "Intangibles"         2000
    20000              
    'sales'         4000
    my output is required like
    incase if i am getting text ( this text is not constant its coming like any thing shownw above example)  i need replace number key figure values in 0amount fileds.
    how can i reach with this in field routine
    data v_text type char
    if source_fields_0amount not equall number
    result 0 number ( kf)
    like what is code i need to use

    Hi,
    One thing's to be clarified :
    If you need sometimes number & sometimes text in a particular target field, then it has to be a char field and you cant do any mathematical operation on that later.
    --Akashdeep

  • Text item number checking

    Hi,
    is there a way werein the user can only input numbers and a decimal point into a text item.
    thanks,
    psdilag

    Hello,
    I am finding no problem in using this function in PL/SQL as well as forms. Here is what i have done in PL/SQL:
    SQL> create or replace function isnumeric ( p_string in varchar2)
    2 return boolean
    3 as
    4 l_number number;
    5 begin
    6 l_number := p_string;
    7 return TRUE;
    8 exception
    9 when others then
    10 return FALSE;
    11 end;
    12 /
    Function created.
    SQL> set serveroutput on
    SQL> declare
    2 a number;
    3 begin
    4 if isnumeric(123) then
    5 dbms_output.put_line('number');
    6 else
    7 dbms_output.put_line('char');
    8 end if;
    9 end;
    10 /
    number
    PL/SQL procedure successfully completed.
    And in forms i used this code at WHEN-BUTTON-PRESSED trigger for testing purpose and here also it worked very well for me..........

  • Remove all text/non-number characters

    Odd question, but is there a way to remove all non-number characters from a column of cells? For example, if I have:
    6dfasfads
    12Randomletters.
    Is there a way to get rid of the letters?
    <Edited by Host>

    Here is a script doing the trick with no extraneous table or even column.
    Barry's response is a clever one. I'm a bit bored to miss this track.
    --[SCRIPT cleaner]
    Enregistrer le script en tant que Script : cleaner.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner le groupe de cellules dont le contenu doit être nettoyé
    Aller au menu Scripts , choisir Numbers puis choisir cleaner
    Les cellules dont le contenu renferme des caractères non-numériques seront débarassées de ceux-ci.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: cleaner.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select the range of cells whose content must be cleaned.
    Go to the Scripts Menu, choose Numbers, then choose "cleaner"
    The cells whose content embed non numerical characters will drop them.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/07/09
    --=====
    property alloweds : "0123456789.,-"
    on run
    set {dName, sname, tname, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sname to tell table tname
    repeat with c from colNum1 to colNum2
    tell column c
    repeat with r from rowNum1 to rowNum2
    set maybe to value of cell r
    try
    maybe * 1
    on error (*
    The cell doesn't contain a true number so it must be cleaned
    set clean to {}
    repeat with k in maybe
    set k to k as text
    if k is in alloweds then copy k to end of clean
    end repeat
    set value of cell r to my recolle(clean, "")
    end try
    end repeat -- r
    end tell -- column c
    end repeat -- c
    end tell --Numbers
    end run
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) vendredi 9 juillet 2010 11:11:17

  • Left justify text in number field

    Hi,
    I would be grateful if someone could tell me how to display the text (returned from a loop) in a number field
    so that it is left justified - also where would it have to be set?
    The 'justification' setting when set to 'Left' doesn't achieve this.
    Any help would be appreciated.
    Kind Regards,
    Tom

    First i dont think so in Number field u can set TEXT
    Create a field with CHAR type and u can put alpha numeric text in it
    set the justification Property of Text item to Start or Left
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

Maybe you are looking for