How to convert text values in a popup menu to numerical values?
Hi there,
I am trying to create a table in Numbers where one cell needs to have a numerical value inserted into it based upon the value chosen in a popup menu in another cell, and I'm not sure how to go about it.
To be more specific, I have a cell containing a popup menu with the items "Bronze", "Silver", "Gold" and "Platinum". Depending on which value is chosen, I need another cell to be populated with a value of 1,1.5,2 or 2.5 respectively, as I will then use this value to perform a multiplication elsewhere in the table. I have tried using the IF function in the 2nd cell but I can only get that to match one value and not an array of values.
Could anybody advise on the most effective way of accomplishing what I am trying to do?
Many thanks in advance.
Michael Quayle wrote:
(1) Hopefully you're not looking for points for being helpful, because all you're doing here is patronising me from the looks of it.
"The fact to be a newbie doesn't prevent someone to have a quick look, at least to the list of available functions, to know what may be done with the tool."
(2) This was *obviously* the first thing I did, followed by a Google search. When those avenues were exhausted I tried here. However, like I said, having "a quick look" is useless if you are not familiar enough with spreadsheets to know what it is you are looking for! MY choice of language to describe what I was trying to achieve was obviously not compatible with any search I performed, which is why I had to resort to asking a person rather than a manual. And frankly, the language used within the documentation is often rather alien to me. Having read the documentation for VLOOKUP I still don't fully understand its application. I'm a musician for heaven's sakes - everybody knows we can't read!
"The users guides were designed to help users, not to help helpers to help users "
(3) Are all your posts this condescending? I came here to ask a question, not to be accused of being lazy and not reading documentation. Like I said, my own searches through the manual were fruitless, so I came here for help. Are all the responses on this forum so cold and terse?
(1) Don't worry, I'm not here to grab points.
(2) Searching in the existing threads with the available tool seems more logical than searching in Google.
(3) I write what I want, the way I want.
In the cell C2 of the main table, the formula is :
=IF(ISBLANK(B2),"",VLOOKUP(B2,vlook_up :: A:B,2,FALSE))
Apply fill down to fill other cells.
Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 12:55:03
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
Similar Messages
-
Popup Menu(F1- Help values) is not diaplying for a char at selection screen
Hi,
After executed the query, we are trying to get help (F4) values for info object Employee Group (EMPLGROUP) in the selection screen but it is taking long time nearly 1 hr and getting timed out. And for other Chars we are getting the help popup menu.
for your info...
There are only 6 values are there in Employee Group master data table.
And the characteristic settings in Business Explorer tab are as the following,
Display u2013 Text
Text type u2013 Default
BEx description u2013 Short description
Selection u2013 No selection Restriction
Query Def. Filter Value Selection u2013 Only values in Infoprovider
Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation
Can any one please suggest us which settings we needs to change to get the popup menu (help values) for Employee Group at selection screen and what is the reason for not displaying the help popup menu?.
and can any one explain us about the setting "Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation"
Thanks & Regards,
Raju. EHi,
I am getting the data aslo for Employee Group in the query when I drill down that char.
But I dont know why it is taking long time and getting time out to display the popup menu for help values at selection screen.
I think this is due to the below setting only at char level,
Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation
and there are 3 opstions for the above seeting as below,
1. Only values in master data
2. Only values in Infoprovider
3. Only Posted Values for Navigation
Can any one help me, which opstion will solve the issue and can any one explain me what is the difference between 2 & 3
Thanks,
Raju. E -
How to check whether a field contains at least one numeric value
how to check whether a field contains at least one numeric value..
Hi,
I hope that this code will works.
constants:
c_digit_grp TYPE char11 VALUE '0123456789', " Digit group
* Data Declaration
data :
str type string.
* if you want check entire string and pass entire string
if str CA c_digit_grp.
* write your logic ---this block will execute atleast one numeric value exists in the string
Endif.
Regards
Bhupal Reddy -
How to convert text to PDF?
Hi,
I have a text file that I would like to create a pdf for it.
is there any function that can convert text to pdf format?
Thanks,
ItaySee the example code :
DATA: it_otf TYPE STANDARD TABLE OF itcoo,
it_docs TYPE STANDARD TABLE OF docs,
it_lines TYPE STANDARD TABLE OF tline,
st_job_output_info TYPE ssfcrescl,
st_document_output_info TYPE ssfcrespd,
st_job_output_options TYPE ssfcresop,
st_output_options TYPE ssfcompop,
st_control_parameters TYPE ssfctrlop,
v_len_in TYPE so_obj_len,
v_language TYPE sflangu VALUE 'E',
v_e_devtype TYPE rspoptype,
v_bin_filesize TYPE i,
v_name TYPE string,
v_path TYPE string,
v_fullpath TYPE string,
v_filter TYPE string,
v_uact TYPE i,
v_guiobj TYPE REF TO cl_gui_frontend_services,
v_filename TYPE string,
v_fm_name TYPE rs38l_fnam.
CONSTANTS c_formname TYPE tdsfname VALUE 'ZTEST'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = v_language
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = v_e_devtype.
st_output_options-tdprinter = v_e_devtype.
*st_output_options-tdprinter = 'locl'.
st_control_parameters-no_dialog = 'X'.
st_control_parameters-getotf = 'X'.
.................GET SMARTFORM FUNCTION MODULE NAME.................
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
...........................CALL SMARTFORM............................
CALL FUNCTION v_fm_name
EXPORTING
control_parameters = st_control_parameters
output_options = st_output_options
IMPORTING
document_output_info = st_document_output_info
job_output_info = st_job_output_info
job_output_options = st_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
.........................CONVERT TO OTF TO PDF.......................
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = v_bin_filesize
TABLES
otf = st_job_output_info-otfdata
doctab_archive = it_docs
lines = it_lines
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
........................GET THE FILE NAME TO STORE....................
CONCATENATE 'smrt' '.pdf' INTO v_name.
CREATE OBJECT v_guiobj.
CALL METHOD v_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name
path = v_path
fullpath = v_fullpath
user_action = v_uact.
IF v_uact = v_guiobj->action_cancel.
EXIT.
ENDIF.
..................................DOWNLOAD AS FILE....................
MOVE v_fullpath TO v_filename.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_bin_filesize
filename = v_filename
filetype = 'BIN'
TABLES
data_tab = it_lines
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. -
How should convert text file into XML file?
I do a project "WEB SERVER LOG ANALYZER" using JSP. For that i copy the content of log file into the other file . how i convert it into XML file . xplain with coding
Read this [page.|http://www.devx.com/getHelpOn/10MinuteSolution/20356]
-
How to convert text to outline in photoshop elements 11
I need to give my business card file to my printer to print, and for some reason I cannot find the convert text to shape option (it is not visible under layer-type as all my googling suggests). I basically need to do this as the printer doesnt have my font.
Thanks so much.That option is one of the many tools provided by the affordable Elements+ add-on:
http://elementsplus.net/
In the Paths section:
http://elementsplus.net/v6/en/path-from-selection.htm -
How to adjust width of an individual popup menu cell?
Hi, I have set up a horizontal popup menu which is too long. I want to adjust the width of individual cells that don't have long text, but the program just takes the widest text and creates all the cells the same width. Is there a way to place a title on two lines so it doesn't take up so much room?
There is currently no way to adjust the cells of individual cells or break the text onto two lines.
-
How to get rows where a varchar column contain pure numeric value
hi,
i have to make a query from a table that return only the rows where the occurrences of a string column contain a pure numeric value
for example my table MYTABLE have the column COL1 varchar2(100)
with values
row 1 : '100'
row 2 : '101 dalmatiens'
row 3 : '102'
row 4 : 'anything'
i want to get only the rows 1 and 3 which are pure integer so i can sort and compare them like number.
thanksSQL> with rt as
2 (select '100' str from dual union all
3 select '101 dalmatiens' from dual union all
4 select '102' from dual union all
5 select '103 #$&''() 456' from dual union all
6 select 'anything' from dual)
7 /* End of sample data (rt) */
8 select str
9 ,trim(translate(str,'1234567890'||str,'1234567890')) num
10 from rt
11 where trim(translate(str,'1234567890'||str,'1234567890')) is not null;
STR NUM
100 100
101 dalmatiens 101
102 102
103 #$&'() 456 103456
-- Oooooops, I misread and now have corrected it
SQL> with rt as
2 (select '100' str from dual union all
3 select '101 dalmatiens' from dual union all
4 select '102' from dual union all
5 select '103 #$&''() 456' from dual union all
6 select 'anything' from dual)
7 /* End of sample data (rt) */
8 select str
9 ,trim(translate(str,'1234567890'||str,'1234567890')) num
10 from rt
11 where trim(translate(str,'1234567890'||str,'1234567890')) = str;
STR NUM
100 100
102 102Message was edited by:
ushitaki -
How to convert text values acceses from jsp page into an xml file?
/* this is the jsp page which i want to convert it into an xml file
please help me , i thank in advance*/
<html>
<head>
<title> xml test</title>
</head>
<body>
<form action="testxml2.jsp" method = post>
<ul>
<li>
<ul>NAME:
<br>
<li>First Name:<INPUT NAME="firstName" TYPE=text SIZE=20><br>
<li>Middle Name:<INPUT NAME="middlename" TYPE=text SIZE=20><br>
<li>Last Name:<INPUT NAME="lastname" TYPE=text SIZE=20><br>
<li>t Name:<INPUT NAME="tname" TYPE=text SIZE=20><br>
</ul>
<br>
<ul>Role:</b><p><input type="radio" name="role" value="buyer">Buyer<p>
<input type="radio" name="role" value="seller">Seller<p>
<input type="radio" name="role" value="thirdparty">Third Party<p>
</ul>
<ul>
Qualification:<br>
<li>Highest Degree:<INPUT NAME="degree" TYPE=text SIZE=20><br>
<li>Percentage: <INPUT NAME="percentage" TYPE=text SIZE=20><br>
</ul>
<ul> Adress:
<li> streetName:<INPUT NAME="street" TYPE=text SIZE=20><br>
<li>cityName:<INPUT NAME="city" TYPE=text SIZE=20><br>
<li>StateName:<INPUT NAME="state" TYPE=text SIZE=20><br>
</ul>
</ul>
<b>
<INPUT TYPE=SUBMIT VALUE="ENTER" >
</body>
</html>hi there,
In the MCV there is a part about struts, this is a descent way to do this.
how to do it:
create an actionform containing all the properties of the page.
then when you submit your form use an method in the actionforms (that you have written) that makes sets your data in a xml file.
this works very quickely and i use it in production...
you can choose if you want the xml to generaded hard coded or via a parser.
greetings -
How to convert text file into xml file format with and check that with DTD
I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
plz help me outcan i get some code that how to compare the xml with dtd or just give the DTD name with an XML
-
How to convert text file into xml file
Hi Folks,
I am genarating list of data into text file, but i want to genarate xml file for this text file. How to achive this , please let me know. Thanks.
regards
Vishalhi Vishal,
Use<b> GUI_DOWNLOAD</b> FM and give the file name as <b>file.xml</b> with BIN Mode....
i.e,
Download internal table to presentation server file(PC)
DATA: ld_filename TYPE string value <b>file.xml</b>,
Pre version 4.7 declaration e_file like rlgrap-filename.
DATA: begin of it_datatab occurs 0,
row(500) type c,
end of it_datatab.
call function 'GUI_DOWNLOAD'
exporting
filename = ld_filename
<b>filetype = 'BIN'</b>
tables
data_tab = it_datatab[]
exceptions
file_open_error = 1
file_write_error = 2
others = 3.
Regards,
Santosh -
How to convert text module language in Smart Form?
Hello Friends,
I want to print a title in chinese language in smartform. How can I do it. Please help me out from this situation?.
Thanks & Regards
Sathish KumarNormally when we display stard text , we will be either using "read text" function module or will be using include.To display a strd text in chinese it should be maintained in chinese language (SO10-please see whether Std text is maintained in chinese by giving TEXT name, TEXT ID and Language).and when we use "read text" or "include " we will specify the language also in that.
or u can include the standard text with INCLUDE statement and LANGUAGE <> ..
( LANGUAGE is one of the patameters of the include stmt.)
then the text will get printed in chinese language if it is maintained in chinese language
reward if it helps u...
sai ramesh -
How to make text field in tabular form as List of value (LOV)
So the problem is next:
I should to make field in tabular form as LOV(list of value (combobox)) to load there data form db. Could smb take me an advise how to make it.
Thanks.So thanks, I did it, it works. How now to make next: I selected Id from list and in the next column appears name with ID from DB. so how to make ondemand process i know (thanks to you), but how to get value from LOV that I selected to give it to Dynamic Action.
Thanks -
How to convert text captions to text animation?
Hi,
Icreated a few slides with text captions. Now I want to use
text animation with the same text. Can i convert those text
captions to animation text?
Thanks
JackThis was a double post. The first may be seen by
clicking
here.
Please direct any further responses to the other post. -
How to convert bytes to GB vbscript??
Hi I need to find the total size of my C: partition and how much free space it contains. For that I have written a vbscript which works fine but it shows the value of total size and free space in bytes. I need to show it in GB. How it can be done any help??
Below is my script,
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_LogicalDisk",,48)
For Each objItem in colItems
If objItem.Name = "C:" then
Wscript.Echo "FreeSpace: " & objItem.FreeSpace
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Size: " & objItem.Size
End If
NextHi
You can query properties of the drive object (file system object) to enumerate the total, used and available space in bytes then convert the values to gigabytes. See the code below
Cheers Matt :)
Option Explicit
Dim objFSO, scriptBaseName
Dim drive, driveLetter, totalSize, freeSpace, usedSpace
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
scriptBaseName = objFSO.GetBaseName(Wscript.ScriptFullName)
driveLetter = "C:\"
Set drive = objFSO.GetDrive(driveLetter)
totalSize = drive.TotalSize
freeSpace = drive.FreeSpace
usedSpace = totalSize - freeSpace
If Err.Number <> 0 Then
WScript.Quit
End If
MsgBox driveLetter & " drive is " & FormatGB(totalSize) & " GB" & vbCrLf & _
driveLetter & " drive is using " & FormatGB(usedSpace) & " GB" & vbCrLf & _
driveLetter & " drive has " & FormatGB(freeSpace) & " GB available", vbInformation, scriptBaseName
On Error Goto 0
'Name : FormatGB -> Format Bytes to GigaBytes.
'Parameters : size -> Numeric value in Bytes.
'Return : FormatGB -> Numeric value in GigaBytes to two decimal places.
Function FormatGB(size)
FormatGB = FormatNumber(size / (1024 * 1024 * 1024), 2,0,0,0)
End Function
Maybe you are looking for
-
Started browser as usual. Browser informed me that the 3.16.7 version was not secure; I should upgrade to 4.0 First problem was the kaspersky was not compatible. Second problem was hp photo not compatible. Third is the browser user interface is too d
-
ITunes crashes when I try to sync my iPhone
when i try to sync my iPhone 5s (iOS 8.1.2), iTunes (12.1) crashes. Any solutions? here's the entire log: Process: iTunes [34548] Path: /Applications/iTunes.app/Contents/MacOS/iTunes Identifier: com.apple.iTu
-
I have an iphone4 and that I have had for four years and they are saying that I am not eligible for an upgrade until the end of July 2015. That is four years and 3 months after I purchased this phone. "Customer service" said I had an upgrade at the e
-
I bought it but I can't use it - switching to Bluebeam
I just spent 2 hours on hold with adobe support to get my old computer de-activated (since the de-activate button in the menu is greyed out???) so I could install it on my new computer. Bad enough, but I had to listen to unbearable eardrum shattering
-
I want to see events that I had a year ago on my iphone calendar, but they only go back 6 months and if I go to settings and choose "all events" then nothing shows up as an event!!