Using excel formulas to circumvent non-existence of data

Hello,
If there is no data in my database for a particular month my query retrieves nothing. Accordingly I would like to insert an excel formula in the spread sheet saying something like "If cell is blank then insert next month name"
Is there a way of excel knowing what the next month name is (for example: what comes after APRIL)? Can I create a list of values in excel to tell it what month comes next?
Example:
APRIL - $100
MAY - $100
NOVEMBER - $100
I would like to insert all the months between May and November
Thanks in advance.

Hi Alicia,
It can be done. Have the months from Jan to Dec hardcoded. And write a formula saying
=if(<value Cell>="",<corresponding cell having the next month>,<cell having the same next month>)
I hope it solves the issue.
It can be clearer if you explain the scenario, that way it would be easy to solve.
Thanks,
Sara

Similar Messages

  • How to use Excell formula's within EVDRE

    Hi,
    we want to built a rather large P&L with time in columns and account and cost center in the rows.
    We would like to insert some subtotals within the P&L strucure using simple excel formula's.
    So we create the P&L structure and leave some empty rows in between, which are filled up with excell formula's. The row key range is adapted, so it does not reference the excell formula's. If we hit refresh workbook, our P&L is ready and displaying the correct data.
    Problem now is if we select 'expand all'. My entire P&L structure is changed and displayes the last section of the row key range several times (as many as we have different row key ranges) ... I've put "noexpand" on all of the dimensions on row and column ...
    So normally does one use the functionality of excell formula's within a EVDRE report?
    D
    solved it

    Hi D
    One way is to switch of the expansions and insert the rows and then have the subtotals. to swith of expansion just edit the cell where you have written the evdre function and then remove the formulas pointing to expand range.
    EVSUB in after range would not work here as the whole range is related to one dimension and it works if we have two dimensions and need subtotals
    Regards
    Harish B K

  • Using Excel Formula to Submit Data

    Has anyone tried this - In the data range of an ad-hoc view, build excel vlookups to retrieve data from an excel table and press submit? I tested this process and the data submitted and when refreshed, the ad-hoc grid returned the vlookup values and retained the vlookup formula. I did further testing by creating another ad-hoc grid in a different worksheet without any of the vlookup and the ad-hoc grid returned the correct value.
    Is what I described above a smartview functionality?
    Thanks,

    Because you have formula preservation turned on, the vlookup formulas will be retained and not refreshed with the Essbase values. If you turn off the retain formulas then after the submit, the Essbase values will be returned, but you will lose the vlookup formulas

  • Retrieving BEx Query Results Area for use in Excel formulas

    Hello,
    I run BEx queries in workbooks and then use Excel formulas ( mostly VLOOKUP(LookupValue, ResultsArea, ColumnReturned,) ) to retrieve certain information from the query ResultsArea.
    ****Problem:
    Depending on the query parameters, the query "Results Area" is larger or smaller.
    ****Non-optimal solution:
    One way to define the  ever changing Excel range occupied by the Results Area is to create an Excel name as:
    QueryRange = OFFSET(QueryFirstCell,,,COUNTA(OFFSET(Sheet1!$A:$A,,COLUMN(QueryFirstCell)-1,,)),COUNTA(OFFSET(Sheet1!$1:$1,ROW(QueryFirstCell)-1,,,)))
    Then, the only input required is the top-left cell of the Results Area, which stays the same (unless the query definition changes).
    ****Question
    What is the best way to refer to an ever-changing query Results Area in an Excel formula?
    Thank you!
    Louis

    It is actually much easier than that.
    Use a VBA statement like the following:
    Set RptRng = ActiveCell.CurrentRegion
    This will retrieve the data in the Results Area, no matter what the size is.
    Hope this helps...
    Bob

  • Use of Excel Formulas in EVDRE reports

    Dear Freinds,
    I am trying to use excel formulas in EVDER (report).
                                                      2011.MAR
    Account(Base level member)  =SUM(RANGE)
    this at somepaces is working and in some places its  not working. Kindly share the knowldge how to use them in excel

    Hi Vishwanath,
    Whenever we expandan EVDRE report or Input schedule, the formula (if any) in the first cell is applied to the to the other cells as well. Thus in expansion we will loose any formula specified in the other cells.
    If you donot want this to happen, it is better to make the evdre static. This should help you use formulae as required.
    Hope this helps.
    Regards,
    Shoba

  • How can I convert from Modbus raw data to engineering units using a formula?

    Within Lookout, I have several Modbus numerical input types that do not have a linear corespondence to the Engineering values they represent.  How can I display these values accurately using a formula to convert from the raw data to an engineering value?

    I don't quite understand your reply.  I'm using Lookout 6.0.2, logged in as Administrator, in Edit Mode.  The Modbus object is named RTU06_SAV.  The Active member is 30002 with an alias of SAVfmSMT_RSL.
    Following your instructions, I opened Object Explorer and right-clicked on RTU06_SAV. 
    This opened a menu containing:  Refresh, Cut, Copy, Rename, Delete, Edit connections..., Edit Data Member Configuration, Configure Network Security and Properties.
    I assumed that I should select Edit Data Member Configuration, but maybe I'm wrong. 
    Within Data Member Configuration I can set up Linear Scaling between Raw data and Engineering data.  I know how to do that, but what I need to know is how to convert Raw data to Engineering data using a formula representing a non-linear transformation (such as a converion to a logarithmic value or perhaps a formula derived by fitting the formula to a curve on a calibration chart).
    Once I have this my Engineering data can be represented on a control panel as both a numeric value AND as a correctly reading Gauge.  It can also be properly represented on a HyperTrend graph.
    What do you suggest?

  • How to apply Excel formula in BPS layout

    Hi ,
       I need to apply the following logic in my BPS layout.
    There are three data columns called C,D,E respectivelt
    redord 1   user input data for all the columns,
    Record 2   C2 = D1 + E2.
    Record 3   C3 = D2 + E3.
    Record n   Cn = D(n-1) + En.
      n is the number of record in teh layout.
    1: Can we use Excel formula to achive this?
    2: If the anser is yes, how can we configure the BPS layout? I am not sure if we can do it at the last step of change layout.
    3: If the answer is no, what is the other choice? I have tried to use user exit, but had some problem in passing the data to xth_data table in the orginal order sequence.
    thanks in advance.

    JW,
    please see my answer to your original post "data in BPS layout columns"
    Regards,
    Marc
    SAP NetWeaver RIG

  • Exporting to excel..error in using excel easy table.vi

    Hi...
    Am using excel easy table.vi to export my data to excel.....it contains a date field...When exported to excel,the date and month is getting interchenged.
    ie,05/03/2008 is converted as 03/05/2008...What is the work around for this?
    i read in one of the posts that  have to format the date filed using  Excel Set cell Format.vi..I tried wth that ,but so far cudnt fix...i tried wth using @ in the number format..then i was getting a string instead of datetime.When used%d/%m/%Y..then i was getting error.
    If i can use that,how do i.
    My datetime filed is the first column in the 2D array.
    Thanks in advance...

    Hi,
    Excel handles date and time as a floating point decimal representation.  The integral value (to the left of the decimal) represents the number of days since the beginning of the 20th century.  The decimal value represents the time of day from midnight in seconds divided by 86,400 (i.e. 6:00:00PM = 0.75). 
    Excel chooses the default regional date format (i.e. MM/DD/YYYY, DD/MM/YYYY, etc.) based on your current location setting.  You can manually change the format of a particular cell by right clicking on any cell and selecting 'Format Cells', then selecting 'Date', and finally changing the 'Locale (location)' to the desired format.  This allows you to format the date however you'd like.
    Unfortunately, Microsoft Excel does not have a text function to programatically change the 'Locale (location)' setting for a cell.  This means that if you need to send a date through the Report Generation Toolkit that is in a format different from the current location setting, you will need to convert the date representation to text.  This will change the way Excel handles the cell data from the date format mentioned above to a simple text sting.  For example, if you're trying to convert the date '12/24/2008' in cell A1 into '24/12/2008', you can use the following code:
    =TEXT(A1,"dd/mm/yyyy")
    If you try to keep the cell formatted as a date, Excel will interpret '24' as a month and '12' as a date, which results in an incorrect date.  There is no easy way to programatically convert this text string back into a date without manually changing the date format of the cell.
    Credit: Ganesh Ganeshkumar
    Regards, Kate

  • How to define Excel function using BEx formula

    Hi experts,
    May I know how to define the following Excel function using BEx formula?
    IF(AND(Revenue<0,Cost<0),"N/A",(Profit/Lost/ABS(Revenue)))
    Thanks!

    for me its easy to implament logic with * and + rather than  AND and OR respectively
    ((Revenue<0)(Cost<0))Value +((Revenue>0)(Cost>0)) ( Profit&Lost / ABS(Revenue))
    As i have mentoned already,for Else case i have considered (Revenue>0) and (Cost>0)  only.
    Value can be a KeyFigure/Formula/formula variable/CKF/RKF
    its not possible to type characters in the formula window so 'N/A'
    Regards.
    Message was edited by:
            Murali c

  • Converting Excel formulas to use in Numbers

    I want to use an Excel 2010 spreadsheet in Numbers on my iPad.
    When added and opened with Numbers, some formulas are not copied, only the values... How can I keep / convert all the the formulas ?

    Hello pjl123, and thanks for helping
    Only some formulas are not converted. It's a bit long to find all of them, because there seem to be a lot of small triangles with exclamation points in the converted Numbers file.
    I'm not sure about the way I should save the file, since I presently use Excel 2010 normally (.xls format)
    The reason I'm asking for help on this, is that I want to get rid of my M/S windows laptop in favour of an Apple, and I have a lot of excel files that would require a lot of work to redo in numbers....
    If anyone knows how to save an excel file in a format more compatible with numbers, I would be very grateful.

  • Report generation, inserting Excel formulas

    Hi everyone,
    We just acquired the Report Generation Toolkit. I've got the basic report figured out but I'm stymied at inserting formulas where I need to. The report will have one row added when data is acquired. At that time I need to insert two formulas each referring to the cell immediately to the left of the cell it's in. I've found examples that put formulas at the end of the sheet but none that plugs them in as the data is being saved. Does anyone have an example of how this can be done?
    Thanks 

    This snippet creates a report with the value 3 in a cell (as it turns out, it's cell A1).  Note that because I'm using Excel Easy Table, I need to turn my scalar (3) into a 2D array.  Easy Table gives me the cell address just to the right of the insertion (where the Formula will go -- by subtracting one from the Column, I can get back the Excel Address (A1) of the "cell to the left".  I then create a formula (starting with "=") that doubles this cell and adds 0.5, then use Excel Insert Formula to put it into the Worksheet, where it becomes 6.5.
    Bob Schor
     

  • Can I use a formula node to start the execution of a case structure?

    Hi,
    I am working on editing a VI to make it much easier to understand (for colleagues and non LV users). For one reason or another, the VI's creators did not fully make use of the power of case structures and other structure types. In the application we need it for, the instrument cycles and repeats measurements on several objects. We are interested in measuring the motor currents for several motors in the system. As it stands now, for each sample object's run, there is a separate sub-vi diagram which displays its waveform trace and several indicators such as max current, time at max, etc. That code was contained within a T/F case structure and copied and pasted 20 plus times.... Obviously the vi became extrememly cluttered and needed a huge screen to see. The trigger for the current case structures is an EQUALS comparison between one input (which is the sample object counter; and this part I will likely leave unchanged since it makes a lot of sense already) and a constant which was defined 1 through 20+ for case. 
    I have since made one case structure and 20+ instances of that case and have labeled them (at the top selection box near the detent arrows) "1", "2", 3, etc. I am wondering if I can use a formula node to act as the "trigger" which sets each case structure running? I believe that a simple IF statement should work. Please see a snippet of my attempt at making this in C below.
    For the node, I defined X as the input and Y as the output. The input to the node, X, is connected to the sample object counter. The output, Y, is connected to the case selector of the case structure. My attempt at the code is below:
    int32 y
    For(x == 1)
       y = "1";
     For(x == 2)
       y = "2";
    etc, etc.
    Is that above code snippet correct? Do i need something like "ENDIF" or "end if" at the end? Does "y" have to be defined as "int32" or can it be something else?
    Thanks for the help!

    Is your formula node doing anything else besides what is shown?
    Why don't you just wire the value that is going into it at X directly into the selector of the case structure?
    Attachments:
    Example_VI_BD.png ‏2 KB

  • Using Dimension Formulas to sum data based on different criteria

    Hi all,
    I am trying to use a u201CDimension Formulau201D to perform the following calculation:
    We have an account dimension which has 2 important properties:
    1.     CRITERIUMTYPE: This property can have 3 different values: u201CWERKu201D, u201CINVu201D OR u201CLIQu201D
    2.     ACCTYPE: This property can have 2 different values: u201CEXPu201D or u201CINCu201D
    The client wants to have a report that sums data based on these 2 properties. An example will help to clarify this:
    ACCOUNTS     CRITERIUMTYPE     ACCTYPE     VALUE
    ACCOUNT A         WERK                          EXP               100 u20AC
    ACCOUNT B         WERK                          INC               150 u20AC
    ACCOUNT C         WERK                          EXP               200 u20AC
    ACCOUNT D         WERK                          INC               300 u20AC
    ACCOUNT E         INV                          EXP               50 u20AC
    ACCOUNT F         INV                          INC               100 u20AC
    ACCOUNT G         INV                          EXP               200 u20AC
    ACCOUNT H         INV                          INC               500 u20AC
    The clients wishes to see this data in the following way:
    CRITERIUMTYPE     ACCTYPE     VALUE
       WERK                         EXP              300 u20AC
                                        INC              450 u20AC
       INV                         EXP              250 u20AC
                                     INC              600 u20AC
    In order to achieve this I have created several new accounts, one for each combination e.g.: Account WERKEXP is used to sum the data on the combination CRITERIUMTYPE=WERK and ACCTYPE=EXP. I have created a dimension formula in my account dimension but this is where I am stuck. I have created the following formula to calculate the account WERKEXP:
    IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("ACCTYPE")="EXP",IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("CRITERIUMTYPE")="WERK",[BUDGETPOSITIE].CURRENTMEMBER,0),0)
    The problem with this formula is the following:
    The formula will add all amounts that meet the 2 criteria mentioned in the formula, EXP and WERK, but as soon as it finds an accounts that does not match the 2 criteria it will set the account WERKEXP back to 0. I need to know if there is a way, using dimension formulas, of adding these values together without the new account being set to 0 as soon as one of the accounts it needs to check does not meet 1 of the 2 criteria.
    We are working on SAP BPC 7.5 for NW with SP04
    All help is very much appreciated!
    Kind regards,
    Stefano

    Hi,
    You can also use ParentHn property to have different grouping of accounts within the dimension.
    So in your case rather using the member formula you can have four accounts and add them in the Parenthn property for grouping it.
    1. The Solution proposed by Nilanjan is specific for a Report/IS and Performance will be good
    2. My solution will be global something similar to MDX formula, but performance may be slightly lesser than using excel function.
    Hope this helps,
    Regards,
    G.Vijaya Kumar

  • Numbers Equivalent of Excel Formula for Converting HH:MM:SS to DD:HH:MM:SS

    I am not sure if this has been asked before.
    What would be the Numbers formula for converting HH:MM:SS to DD:HH:MM:SS?  The Excel formula is entering 396:59:45 into a cell and then in another cell is the following =TEXT(A2,"dd:hh:mm:ss").  The A2 is the example cell.

    There is no formula to actually do the conversion. It is a matter setting the cell format. After that all you need to do is add a simple =<cell> formula to get the value in (i.e. - see my previous post), or a formula to add the two values (=A2+A5). Use Duration rather then Time for the cell formats.
    A duration in Numbers for iOS will not appear 10:16:25:03, it will display as 10d 16h 25m 03s. If it is the actual display punctuation you are trying to change, it may be possible using a combination of a Duration and TEXT functions but would be quite lengthy, convoluted, and more trouble than it is worth.

  • ABAP - Editable report using Excel view

    hi friends
    In my report i am using REUSE_ALV_GRID_DISPLAY
    Function module to display the data in alv format. I am using the view in
    Excel format.
    My requirement is,
    If i change the data in the
    excel sheet that should reflect in the internal table.
    I am able to do changes, but the data is not getting change in the internal
    table.
    The purpose of this is, the output of this report will be the
    input of another program after changing the output in excel(only, bcoz in
    excel they will change using some formulas).
    Note:
    I am
    getting the changes to internal table if i use grid display not in excel
    format.
    Can anyone suggest me how to solve this problem?

    Hi u can esily do this using Object oriented ALVs. Heres the code :
    *& ALV using objects : ADD, MODIFY RECORDS
          Data Declaration
    DATA : ITAB1    TYPE TABLE OF SFLIGHT,
           G_CUST1  TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           G_GRID1  TYPE REF TO CL_GUI_ALV_GRID,
           LT_FCAT1 TYPE LVC_T_FCAT,
           LS_FCAT  TYPE LVC_S_FCAT.
         Start of selection
    START-OF-SELECTION.
      PERFORM POPULATE_TABLE.
    END-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          PBO module
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZSAB1'.
    SET TITLEBAR 'xxx'.
      IF G_CUST1 IS INITIAL.
        CREATE OBJECT G_CUST1
          EXPORTING
            CONTAINER_NAME    = 'CC1'.
        CREATE OBJECT G_GRID1
          EXPORTING
            I_PARENT          = G_CUST1.
      ENDIF.
      PERFORM FCAT_SFLIGHT.
    to display the ALV Grid
      CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
        CHANGING
          IT_OUTTAB       = ITAB1
          IT_FIELDCATALOG = LT_FCAT1.
    transfering the grid from display mode to editable mode
      CALL METHOD G_GRID1->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  fcat_sflight
          Filling Field Catalog
    FORM FCAT_SFLIGHT.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          I_STRUCTURE_NAME       = 'SFLIGHT'
          I_CLIENT_NEVER_DISPLAY = 'X'
          I_BYPASSING_BUFFER     = 'X'
        CHANGING
          CT_FIELDCAT            = LT_FCAT1.
      LOOP AT LT_FCAT1 INTO LS_FCAT.
        IF    LS_FCAT-FIELDNAME EQ 'PRICE'
         OR LS_FCAT-FIELDNAME EQ 'PLANETYPE'
         OR LS_FCAT-FIELDNAME EQ 'FLDATE'.
          LS_FCAT-EDIT = 'X'.
          LS_FCAT-CHECKTABLE = '!'.      "do not check foreign key relations
          MODIFY LT_FCAT1 FROM LS_FCAT.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " fcat_sflight
    *&      Module  USER_COMMAND_0100  INPUT
          PAI module
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'SAVE'.
          PERFORM SAVE_DATA.
        WHEN 'LEAV' OR 'CANC' OR 'BACK'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                    "USER_COMMAND_0100 INPUT
    *&      Form  save_data
          checking the changed or added data is consistent
    FORM SAVE_DATA.
      DATA: L_VALID TYPE C.
      CALL METHOD G_GRID1->CHECK_CHANGED_DATA
        IMPORTING
          E_VALID = L_VALID.
      IF L_VALID IS NOT INITIAL.
        PERFORM UPDATE_DATABASE.
        MESSAGE S000(0K) WITH TEXT-S01.
      ENDIF.
    ENDFORM.                    "save_data
    *&      Form  update_database
          Update records to DB table
    FORM UPDATE_DATABASE.
      DATA: LS_SFLIGHT TYPE SFLIGHT,
            LS_OUTTAB LIKE LINE OF ITAB1,
            LT_INSTAB TYPE TABLE OF SFLIGHT.
      LOOP AT ITAB1 INTO LS_OUTTAB.
        MOVE-CORRESPONDING LS_OUTTAB TO LS_SFLIGHT.
        APPEND LS_SFLIGHT TO LT_INSTAB.
      ENDLOOP.
      MODIFY SFLIGHT FROM TABLE LT_INSTAB.
    ENDFORM.                    "update_database
    *&      Form  POPULATE_TABLE
          POPULATE TABLE I_KNA1
    FORM POPULATE_TABLE .
      SELECT * FROM SFLIGHT INTO TABLE ITAB1.
    ENDFORM.                    " POPULATE_TABLE

Maybe you are looking for

  • Can't log in to Behance / Old CC ID still in use?

    Since Adobe linked CC and Behance, it appears i can't log in to Behance. This is because i need to log in with my CC ID. I joined Behance long before subscribing to CC, and when i did subscribe to CC, it was under a particular ID/email. During the la

  • Migration two hard drives

    I tried migrating to my new macbook from a g4 tower with two hard drives. When I hook the fire wire up it only sees the non startup disk and will not see the startup disk on the g4 all my music and photos are on the startup disk which is what I wish

  • Can't import cd's

    I tunes was working great, then downloaded sonic stage and now when I put a cd in it is not recgonized for import by i tunes. I tried repair under add/delete programs for i tunes and then I even removed sonic stage still no luck. Any suggestions? (ot

  • Attaching a new 4506-E switch to 2 N7K's using vPC?

    Hi, I need to connect a new 4506-E switch to my existing two N7K switches using port-channels and vPC. Will there be any traffic disruptions when assigning the vPC id to the port-channel? Thanks, Pradeep

  • Public Class error

    Hello I am getting this error: C:\mpg.java:3: Public class Mpg must be defined in a file called "Mpg.java". public class Mpg ^ 1 error Tool completed with exit code 1 My program is named mpg.java. I changed it to Proper case as Mpg.java and i get 5 m