How to put a variable column value in a "vlookup"

Hello there,
I am trying to put a variably chosen column value in a "vlookup" function.
Logically this should work, but it does not, and I cannot figger out why.:
"=vloookup("a", B5:Z28, {=MATCH(4, B4:Z4, 0)})" (replaced brackets with {} for this post)
I am trying to look up the letter "a" in whatever column matches the "match" criteria.
The match is matching a specific value of 4 from row B. (This value varies based on other input)
The vlookup is for finding the letter "a" the whole table in whatever column is returned by the MATCH formula.
How can I do this?
(Like I said the formula above is logically correct, but numbers returns a syntax error.)
Thanks from Alaska
Message was edited by: John Boyarsky
Message was edited by: John Boyarsky
Message was edited by: John Boyarsky

John,
Next get rid of the brackets you referred to; unnecessary. If that doesn't do it, calculate the column number in an auxiliary column and refer to that column in your expression.
Jerry

Similar Messages

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 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.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How to put restriction/variable in BI 7.0 ? Is there any settings required?

    Hello,
    I am working on BI 7. I want to know ""How to put restriction/variable in BI 7.0 ? Is there any settings required? I am putting some variables in BI 7.0 while making some query""
    amit shetye.

    Hi Amith,
              just create a new query  like a previous  versions how u create..  and  now  select particular charecterstic  in the  left side window itself.. and drill down it.. and create  a variable..  and assign all the properties to that variable.. now  drag that particular variable.. in to the Rows  or filters..
         for Restrictions...  put any charecterstics into Free charecterstics.. and right clcik that and select  Restriction. now you need to give  the  values.. based on that  it will  RESTRICT THE VALUES..
    BI 7.0 reporting features
    http://searchsap.techtarget.com/cgi-bin/rd.pl/ftID-1121728-ctID-1064004?//expert/KnowledgebaseAnswer/0,289625,sid21_gci1064004,00.html
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/24ff4009b8f223e10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/ba95531a-0e01-0010-5e9b-891fc040a66c [original link is broken]
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/F9D041D6392AE3E10000000A422035/frameset.htm
    BI7.0
    For greater information on reporting.....
    Good Knowledge in BW Reporting
    regards
    @jay

  • How can i select other column values('-' separated) in group by function

    CREATE TABLE EMP (
         EMPNO NUMBER(4) NOT NULL,
         ENAME VARCHAR2(10),
         JOB VARCHAR2(9),
         SAL NUMBER(7)
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7369, 'SMITH', 'CLERK', 800);
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7499, 'SMITH', 'SALESMAN', 1600);
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7521, 'ALLEN', 'SALESMAN', 2400);
    In Output I want 3 columns : EMP,SUM(SAL),JOB(hyphenSeparated)
    Means i want my output like
    First row : SMITH,2400,CLERK-SALESMAN
    Second row : ALLEN,2400,SALESMAN
    I tried to write following sql : select ename,sum(sal) from emp group by ename
    But i want other colummn value in '-' separated. but group by is only allowing agreegated function.
    How can i select other column value using group by function.

    SQL>  select ename,sum(sal), listagg(job, '-') within group (order by job) as job  from emp group by ename;
    ENAME        SUM(SAL) JOB
    ALLEN            2400 SALESMAN
    SMITH            2400 CLERK-SALESMANnote: LISTAGG is a feature of 11.2

  • APEX 3.0 PDF FOP OC4J REPORT: how to put a variable in the header or footer

    hello.
    I want to put a variable ( like :P15_MY_PARAMETER) in the header OR footer of a standard PDF report , but does'nt work.
    I tried HTML formating with ' &P15_MY_PARAMETER. ' like described in the thread Include a display value in HTML footer ( Include a display value in HTML footer )
    but PDF generated is not readeable by Adobe, , I suppose html codin was not translated.
    Is it a possibility to put a variable in a PDF header / footer.?
    Thanks
    Fernand Ducarme

    Keith,
    If you want to use the value of page items in your PDF page header or footer, they need to be written to session state first. In order to do this, your form needs to be submitted. So a button that redirects to a URL or a report print links (that also redirects), won't do that. But submitting your form doesn't necessarily mean you'll have to leave or refresh your current page. All you would have to do is create a branch that points to your PDF document, and make that the target of your submit action. This way, your page doesn't refresh, and you'll get the open/save PDF dialog you would expect.
    So to give you an example, if you have a regular reports region, enable PDF printing, but do not specify a link label. Then create your own print button, which needs to be a submit button (not redirect to URL). And then create a branch to the current page that is executed when pressing your print button. That branch also needs this request:
    FLOW_XMLP_OUTPUT_R[Report Region ID]
    so if your report region ID is 90104803966374878, then the request would be:
    FLOW_XMLP_OUTPUT_R90104803966374878
    The same technique works for report queries, only in that case you would point to page 0 and use this request:
    PRINT_REPORT=[your report query name]
    So if your report query name is "myreport", this would be
    PRINT_REPORT=myreport
    Hope this helps,
    Regards,
    Marc

  • How to not repeat the column values if repeated on next line and so on..?

    Hi all,
    The XmlP template that is designed gives me the output as follows :
    COL1 COL2 COL3 COL4 COL5 COL6 COL7
    abc 1 1000.00 10.00 95.00 695.00 cad
    abc 2 1000.00 100.00 95.00 695.00 cad
    abc 3 1000.00 100.00 95.00 695.00 cad
    But my requirement is as follows :
    COL1 COL2 COL3 COL4 COL5 COL6 COL7
    abc 1 1000.00 10.00 95.00 795.00 cad
    - 2 - 100.00 - - -
    - 3 - 100.00 - - -
    Note : "-" indicates blank column values (gaps are being filled)
    How do I not repeat the column values if repeated?
    Please let me know if you have answer for it?
    Thanks in Advance
    Munna

    Iam trying to design the xml publisher template using xmlp template builder.
    My requirement is :
    For a receipt number, I have receipt amount, applied amount, unapplied amount and on account amount. And for each receipt, there can be multiple applied amount ( as the receipt can be applied multiple times), but the unapplied amount, on account amount and receipt amount is single.
    By using the logic as said above from http://blogs.oracle.com/xmlpublisher/2007/04/13
    Iam getting the output something like this:
    Receipt Number| Receipt Amount | App Amount |UnappAmount|OnaccountAmount|
    111-b|249.28|249.28|0.00|0.00|
    1110|1,000.00|10.00|95.00|795.00|
    1110| -|10.00|-|-|
    1112|1500.00|1,271.02|-|-|
    1112|-|228.98|-|-|
    My requirement is to go get something like this:
    Receipt Number| Receipt Amount | App Amount |UnappAmount|OnaccountAmount|
    111-b|249.28|249.28|0.00|0.00|
    1110|1,000.00|10.00|95.00|795.00|
    1110| -|10.00|-|-|
    1112|1500.00|1,271.02|0.00|0.00| ---> here lies the difference
    1112|-|228.98|-|-|
    How do i check the duplicate of the column values only for a receipt number??
    Because as for receipt no. 111-b the unapplied amount and on account amount is 0.00, the the unapplied amount and on account amount for receipt number 1112 is getting hided( because its a duplicate) . In reality, it should be 0.00 and any other line for that receipt number (1112) should be hided. except for the applied amount.
    Note We can see that last 2 columns in the last record( for receipt number 1112) is getting hided that is as expected but for 4th record the unapplied amount and on account amount should be 0.00 respecively.
    '-' indicates hided value
    Please help.
    Thanks in Advance

  • How to delete a perticular column value

    Hi,
    I have a table Tbl_Outdirection, In this i have 10 columns. My Query is how to delete a particular column or columns value from the table, Not entire row.
    Please help me.
    Thanks

    Deleting a column value is probably updating it to NULL, in your case.
    So,
    update [table]
    set column = NULL
    where [condition to identify the row]
    /

  • How to Rename the "All Column Values" in Propmt for 11 G.

    Hello,
    i have one Requirement where i have to change the "All Column values" label to custom label.
    I know how to do in 10 g but as here in 11g the oracle directory structure is changed.
    if anyone have idea how to do this?
    Thanking you..

    Hi Veer,
    I think "kmsgPromptRunTimeDropdownAllChoices" is the identifier which will pick up this value from a messages file. Request you to search for this string in Oracle_BI1\bifoundation\web folder's files if you can get one.
    Hope this helps.
    Thank you,
    Dhar

  • How to find out Particular column value in DB

    Hi All,
    I have to find out Particular column value in DB .can U tell me the Query for that.

    There is one way:
    Re: How to write the Query

  • How to change 'Modified By' column value when a new file is uploaded in SharePoint 2013 using Client Object Model?

    I want to change 'Modified By' column value of a file that is being uploaded using Client Object Model in SharePoint 2013. The problem is that the version of the file is changing. Kindly help me. The code that I am using is:
    using (System.IO.Stream fileStream = System.IO.File.OpenRead(m_strFilePath))
        Microsoft.SharePoint.Client.File.SaveBinaryDirect(m_clientContext, str_URLOfFile, fileStream, true);
        Microsoft.SharePoint.Client.File fileUploaded = m_List.RootFolder.Files.GetByUrl(str_URLOfFile);
        m_clientContext.Load(fileUploaded);
        m_clientContext.ExecuteQuery();
        User user1 = m_Web.EnsureUser("User1");
        User user2 = m_Web.EnsureUser("User2");
        ListItem item = fileUploaded.ListItemAllFields;
        fileUploaded.CheckOut();
        item["UserDefinedColumn"] = "UserDefinedValue1";
        item["Title"] = "UserDefinedValue2";
        item["Editor"] = user1;
        item["Author"] = user2;
        item.Update();
        fileUploaded.CheckIn(string.Empty, CheckinType.OverwriteCheckIn);
        m_clientContext.ExecuteQuery();

    Hi talib2608,
    Chris is correct for this issue, when calling update using ListItem.update method, it will increase item versions, using SystemUpdate and UpdateOverwriteVersion will update the list item overwrite version.
    these two methods are not available in CSOM/REST, only server object model is available for this.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Sql:How to find out Particular column Value in DB?

    Hi,
    I have to findout particular column value inDB ( I don't know table Name ).
    can U tell me query for above.

    I want to find the 'name of that 27 year old male train passenger'. I don't know in which country. can you help me please... :-(..commmooon..

  • How to store all the columns values into one single column

    Hi All,
    this is my file layout,i am receiving the data in below format only
    emp_no,c1,c2,c3,c4,c5
    100 ,1 ,0 ,1 ,0,1
    200 ,1 ,0 ,1 ,0,1
    300 ,1 ,0 ,1 ,0,1
    but i want to store that above data into my table like(from c1 to c5 columns values i want to store in period column)
    emp_no,period
    100 ,1
    100 ,0
    100 ,1
    100 ,0
    100 ,1
    200 ,1
    200 ,0
    200 ,1
    200 ,0
    200 ,1
    300 ,1
    300 ,0
    300 ,1
    300 ,0
    300 ,1
    please help me

    Strange but this is it
    Processing ...
    with original as (
         select 100 as id ,1 as v1,0 as v2,1 as v3,0 as v4,1 as v5
         from dual
         union all
         select 200 ,1 ,0 ,1 ,0,1
         from dual
         union all
         select 300 ,1 ,0 ,1 ,0,1
         from dual
    select id,v1 as res_row
    from original
    union all
    select id,v2
    from original
    union all
         select id,v3
         from original
    union all
         select id,v4
         from original
    union all
         select id,v5
         from original
                      ID                                   RES_ROW
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
                                       100                                      0
                                       200                                      0
                                       300                                      0
                                       100                                      1
                                       200                                      1
                                       300                                      1
    15 row(s) retrievedBye Alessandro

  • How to put input variable (elementName in xpath) name in runtime for Assign

    Hi All,
    I want to know how to refer an XSD schema based variable's element and assign it to some other variable at runtime. I mean how can i put the 'To' element's name in assign-activity at run-time?
    Suppose i am having a variable "varInput_PastDuedata" which as below expansion:-
    -varInput_PastDuedata
    -body
    <> ns6:Root-Element-Email
    <> ns6:emailRecords
    <> ns6:CCID
    <> ns6:ACCTNO
    <> ns6:CUTOFFDATE
    <> ns6:AMOUNTDUE
    <> ns6:MOBNO
    <> ns6:TO
    <> ns6:FROM
    <>ns6:SUBJECT
    Now suppose we have assigned text "ACCTNO" to a "String" type variable "varTempString_AcctNo"
    now after above step lets have an assign activity. Now, if we want to assign "varInput_PastDuedata->body->ns6:Root-Element-Email->ns6:emailRecords->ns6:ACCTNO" variable's data to a "String" type variable "varTempResult"
    then we simply assign bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords/ns6:ACCTNO')
    expression to "varTempResult" variable. But what if i define the element name in run-time which is to be assigned to "varTempResult" then how to do it?
    I tried below steps but failed:-
    1) I first assigned "ACCTNO" text to a "String" type vaiable "varTempString_AcctNo"
    2) Then i tried doing below assignment:-
    <copy>
    <from expression="bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords/ns6:$varTempString_AcctNo')"/>
    <to variable="varTempResult"/>
    </copy>
    but it failed at run-time
    3) I also tried below assigment:-
    <copy>
    <from expression="bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords','/ns6:$varTempString_AcctNo')"/>
    <to variable="varTempResult"/>
    </copy>
    but this one also got failed
    4) I tried below assigment also:-
    <copy>
    <from expression="bpws:getVariableData('varInput_PastDuedata','body','/ns6:Root-Element-Email/ns6:emailRecords',bpws:getVariableData(varTempString_AcctNo)"/>
    <to variable="varTempResult"/>
    </copy>
    but this one also got failed
    Please help me in finding the solution for how can i achieve this functionality and decide at run-time about which element is to be used in assignment. Write me for further input if you want in this regard..
    Thanks,
    Mahipal Singh
    [email protected]

    I am not sure what you are looking, as far as what I understood from your question is setting up the values dynamically.
    For setting up the values dynamically you can use getPreference() inside assign activity. You can define the values directly inside the console. The following link might help you
    http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    Thanks,

  • How to set a variable's value from job output

    Can anyone point me at documentation on how to set the value of a variable based on the output of a job? We are running TES v6.0.2.153.
    The Agent/Adapter is a Linux command line, so the Command could be for example:
    echo foo
    and I would like a variable named bar to contain the value foo.  (Obviously in real life the variable value would be dependent on what the command output)
    Thanks in advance,
    Martin

    One more nugget: to parse the response from a command from a UNIX/Linux agent for a specific string and store that in a variable, I followed Rami's advice and then had to find the string in the output.
    The below example puts the first digit of a random number in the variable:
    Job Command:
    bash -c
    Command Parameters:
    "'echo' Random number is $RANDOM | perl -ple 's/.*Random number is (\d{1}).*/\1/'"
    Note that your command itself (in this case "echo") cannot be put in the Command box, otherwise TES does not interpret the Command Parameters correctly.  So you need to set the Command to "bash -c" (run the command in the parameter string), and enter your command and parameters within double quotes in the Command Parameters, with the command being run (in this case "echo") in single quotes at the beginning.
    (I also had to make my .bash_profile run without any output to avoid it being prefixed to the variable value.)
    Hope this helps,
    Martin.

  • How to refresh a report column value alone.

    Hi All,
    If we have a static report and for one of the columns of report, if I need to give a feature to click on it and a popup appears and there is a checkbox to select values on that popup page and finally after making changes and I press on apply changes, It should close the popup window and then come and change the value of that column alone in original report instead of refreshing the whole page.
    The column of the report is of type "Standard Report Column".
    How can I achieve this functionality?
    Thanks & Regards,
    Vikas
    Edited by: Vikas Krishna on Sep 29, 2009 9:47 PM

    Vikas,
    I slightly modified on of my older examples and you will find everything here:
    http://apex.oracle.com/pls/otn/f?p=31517:241
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

Maybe you are looking for

  • Flv player works locally but not when uploaded

    Another day, another issue... I have a flash movie that includes an flv player with previews and buttons. It reads the content from an xml file. It works without problem when I test it locally. Trouble is when I upload it, everything displays correct

  • Unable to insert text in large textbox in Safari

    Hello, I maintain a website from the user side that is created with asp technology in the Windows environment.  I am able to do all things like enter data in fields, check boxes etc but when I try to maintain HTML text in a large text box I can only

  • Will my duel 800 G4 work with Leopard? Its fast than the 867 G4?

    My duel 800 G4 was the top of the line when I purchased it, much faster than the 867 G4, which seems to be the limit on the new Leopard operating system. Will I still be able to upgrade? I have seen on other Apple forums many people asking the same q

  • Your subscription funded by PayPal has been cancel...

    Hi We forgot to have enough credit in our Paypal account to pay for the unlimited world. Now we get email from skype saying its all cancelled. Can I work out how to resolve this? No!!! Our Paypal account now has enough credit. If I try getting a new

  • Error trying to shrink logs using management studio

    hi, i am trying to shrink my transaction logs.  my database is 4.4TB in size.  the trn logs are backed up every 15mins to nas so not quite sure how they blew up from 100gb to over 200gb in one night. when i try to shrink files i get.  cannot show req