Create a formula based on another cell

I would like to create a formula which gives a total/percentage based on the content of another cell.
For example, if A3 contains text "apple", then multiply A7 * 5%; If A3 contains "banana", then multiply A7* 3% and so on.
I have tried using the 'IF' and 'IF-true' functions to no avail.
Any suggestions?
Thanks!

Hi Harveycw,
A Lookup table containing names of fruit and the relevant multipliers
Fruit
Multiplier
Apple
5
Banana
3
Cherry
4
Date
9
Eugenia
11
Fig
6
Grape
7
Huckleberry
8
Main table
Fruit
Value
New Value
Apple
100
5
Banana
100
3
Apple
1000
50
Banana
1000
30
Grape
100
7
Grape
200
14
Formula in C2 (and Fill Down)
=B2×VLOOKUP(A2,Lookup::A:B,2,FALSE)÷100
Regards,
Ian.

Similar Messages

  • Best way to create a table based on another table

    Hello,
    I am trying to create a table based on another table with all the data in it. It has large data.
    create table <tablename> as select * from table1.
    Is this the best way of doing it or is there any other way. please advice.
    thanks

    I am suggested to create new table as
    create table <newtable> as
    select * from <oldtable> where rownum < 1;
    then
    alter table <newtable> compress;
    then
    insert /*+ append */ into <newtable> as select * from <oldtable>;
    but i getting an error saying missing values key words ora- 00926.
    please advice

  • Create a formula based on UserResponse()

    Am trying to create a var based on Count(Payperiod) for overall report however whenever I include the formula at row level the value reverts to the individual row.  How can context be overriden? e.g. Formula is  Sum(HrsWorked)/Count(Payperiod)
    Where Count(Payperiod) is based on a range of dates selected from UserResponse() for a Beginning and Ending Payperiod.
    Report contains record for each employee and If Count(Payperiod) = 3 but that employee may have only HrsWorked recorded for one of the Payperiods
    I want calculation to use HrsWorked for each employee but I need to use the number of payperiods based on the UserResponse()s not on number of Payperiods recorded for employee.

    Hi
    try this syntax
    Sum(HrsWorked)/(Count(Payperiod) In Report)
    Regards,
    Stratos

  • Numbers SUMIF with condition based on another cell?

    This works great!
    =SUMIF(Food Log :: Date,"=March 20, 2008",Food Log :: Calories)
    But I want the condition to be based on a cell value:
    =SUMIF(Food Log :: Date,"=A2",Food Log :: Calories)
    Is there a way to use the SUMIF function with a condition based on the value of a cell?

    Chris,
    Try this formula: (Forgive the made up values in the example)
    =SUMIF(Food Log :: Date, A2,Food Log :: Calories)
    pw

  • How to create a formula based on group level

    Hi,
    If there are three group level ins a report:
    How can I creat a formula to put on page header depended on current group level?
    Thanks!

    Thanks, Abhilash ans Sastry
    I really try to do is to show different text on page header depend on which group level is. the reason is that if there are multi pages group footer, only the first page has group name on tilte if I put group name on the footer.
    I would like to put group name on page header, but have to know which group level is.
    Thanks again

  • Create a report based on another

    Hi,
    i've following question. I have a report A composed by an union of two queries.
    Example:
    Select X,Y from Subject Area UNION Select W,Z from Subject Area
    Is possible create another report which select any fields of the report A?
    Example:
    Select Y,Z from (select X,Y from Subject Area UNION Select W,Z from Subject Area) where ....
    Thanks

    The problem is that my union:
    Select x,y from Subject Area (A) UNION Select z,w from Subject Area (B)
    retrieves following data:
    Jan 3500€
    Jan cast(null as int)
    Feb 1100€
    Feb cast(null as int).
    As you see it duplicates each month. First row is the real row, the second is a dummy row. The part (A) of union retrieves real rows, indeed part (B) retrieves dummy rows. In this way, because Jan, Feb, and so on are on x-axis of my chart, it is filled with all months of the year, even if for any months there aren't data in DB.
    Now, when i download data i see together real rows and dummy rows, so i woul'd filter so, dummy rows are suppressed. I thought to create another request like that in my previous post.

  • How to create a formula based condition in bex query designer

    hi all,
    i have scenario in query designer where i need to calculate Key performance indexes based on characters and key figures iam using.for example the condition is like:
    "if call received is less than call projection then give call received else null"
    how and where to define the condition and i need to name the condition to display it seperatly.please help me in this issue.
    regards
    Vamshi D Krishna

    hi you have to break down your conditions and then code for them.
    for e.ge.
    if actual == 0
      vart = 0.
    else if actual-target ==0
              vart = 0.001
           else
             vart = actual -target
           endif
    endif
    now we start with first condition use operators from boolean catagory
    (Actual != 0)*(other amount)
    this solves first if condition... if actual  = 0 value actual != 0 will be zero we got our desired value.
    if other case then we have give else condition.
    (Actual != 0)*(((actual - target) == 0 )*0.001+((actual-target)!=0)*(actual-target))
    in the second half we have coded the else part.
    in the same way you can proceed for your logic

  • Create Materialized View  based on another database table using db link?

    SQL> SELECT sysdate
    2 FROM [email protected] ;
    SYSDATE
    21-NOV-12
    SQL> CREATE MATERIALIZED VIEW USERCBR.V_T24_COUNTRY1
    2 REFRESH COMPLETE
    3 START WITH SYSDATE NEXT SYSDATE + (5/24)
    4 AS
    5 SELECT sysdate
    6 FROM [email protected] ;
    CREATE MATERIALIZED VIEW USERCBR.V_T24_COUNTRY1
    ERROR at line 1:
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00600: internal error code, arguments: [ORA-00600: internal error code,
    arguments: [qksfroFXTStatsLoc() - unknown KQFOPT type!], [0], [], [], [], [],
    ORA-02063: preceding line from CBRLINK

    It works for me:orcl>
    orcl> CREATE MATERIALIZED VIEW scott.V_T24_COUNTRY1
      2  REFRESH COMPLETE
      3  START WITH SYSDATE NEXT SYSDATE + (5/24)
      4  AS
      5  SELECT sysdate
      6  FROM [email protected] ;
    Materialized view created.
    orcl> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    orcl>so there is no problem with the code. HTH.

  • How to create an lov based on another lov?

    For example, the first lov is a list of regions like east, west....
    When I pick 'east', then i want the next lov to just show all the employees in the 'east' region.
    Thanks

    Hi
    This is not possible in Discoverer 4i. The concept of Cacading lists of values was only introduced in Discoverer 10g R2 (10.1.2).
    Now there's a good reason to upgrade :-)
    Best wishes
    Michael

  • Filter based on another analysis need to run as a seperate query obiee 11g

    Hi,
    I have a main report which has a filter condition that depends on the another request(Created through Filter based on another analysis).The Filter based on another analysis report query comes as a embedded query along with the main query (making a subquery).As it has a subquery it is taking more time to fetch data.
    Is there any possiblity of running the Filter based on another analysis report as a seperate query.
    Please suggest.
    Thanks,
    Soukath

    Hi,
    Make sure one thing,u have eanble check box and submit sql button in the bottom of Advanced tab then save it and try again it will work.
    refer:
    http://tipsonobiee.blogspot.com/2009/06/step-by-step-to-bypass-all-caches.html
    Thanks
    Deva
    Edited by: Devarasu on Dec 19, 2011 11:59 AM

  • Conditional Formatting in one cell with a dates in another cell

    I have a simple spreadsheet that will gauge a project's progress.  I wish to have individual cells change color based on another cell.  I can't get the right syntax in order - groan
    E2 has today's date, =NOW()
    G2 (not started) would change from a color to no color when the start date, F27,  has arrived then
    H2 (started) would change to a color when the date is met, F27, (may be change color as the completed date arrives) then no color when the completed date arrives, F28.
    I2 (completed) would change to a color when the date is met, F28
    When the spread sheet is opened or if I need to change the dates in either of the cells the cells with color gauges will update.
    I am using conditional formating through the ribbon.
    Please help!

    Hi,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the end-user, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best 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.

  • Is there a way to create aliases for formulas without using other cells?

    I have long formulas in certain cells, that consist of a bunch of smaller formulas that I re-use in multiple cells. Is there a way to create an alias for a formula (or create my own function) that I can then piece together into one big formula? I think I can use another cell to drop the formula in, but that just clutters up the spreadsheet.
    Message was edited by: David Powers

    David,
    it looks like you can't define own formulas or create aliases for formulas.

  • How do I use the formula = to enter one cell as a % of another cell

    I wish to enter into a seperate cell what one cell is as a % of another cell in numbers. How do I enter this % formula into the required cell.
    Peter

    Jalna,
    In "a separate cell" write: one-cell's-address / another-cells-address.
    Format separate-cell to %.
    Jerry
    Edit: I just noticed that your question is about iOS Numbers. So, the answer for iOS Numbers would probably be something like:
    Click in "a separate cell". Enter formula mode. Click on "one-cell", select  "/" operator, click on "another-cell". Exit formula mode. Format as %.
    Can you tell I'm just guessing?
    J.

  • How to create a formula to get the month name based on userresponse

    Hi,
    I have created a report using E-Fashion - Actually i need  a report like  -  For ex i need 4 months data from 12 months
    My report should display the 4 months data along with starting & end month data in the next 2 columns
    I have used the prompt to fetch the data & i have created a formula in the cloumn like below:
    For the column haader i have given = Tonumber(userresponse("Enter start:")) - I am getting the Month number in the header But i need the month name in the header.Please guide me
    Regards
    Karthika

    Hi Ram,
      Thanks for your Help.I tried in an another way like I created 2 Variable -
    Start Date  =UserResponse("Enter Month(Start):"
    End Date = =UserResponse("Enter Month(End):"
    I have created the column header for
    start date:
    =If([start Date] = "1";"January";If( [start Date] = "2"; "February";If([start Date] = "3";"March";If([start Date] = "4";"April";If([start Date] = "5";"May";If([start Date] = "6";"June";If([start Date] = "7";"July";If([start Date] = "8";"August";If([start Date] = "9";"September";If([start Date] = "10";"October";If([start Date] = "11";"November";If([start Date] = "12";"December"))))))))))))
    End Date:
    =If([End Date] = "1";"January";If( [End Date] = "2"; "February";If([End Date] = "3";"March";If([End Date] = "4";"April";If([End Date] = "5";"May";If([End Date] = "6";"June";If([End Date] = "7";"July";If([End Date] = "8";"August";If([End Date] = "9";"September";If([End Date] = "10";"October";If([End Date] = "11";"November";If([End Date] = "12";"December"))))))))))))
    For the Datas in the column:
    Start Date:
    =[Sales revenue] Where([Month]=ToNumber(UserResponse("Enter Month(Start):")))
    End Date:
    =[Sales revenue] Where([Month]=ToNumber(UserResponse("Enter Month(End):")))
    I got the Report format as i required
    Thanks
    Karthika

  • Assigning a Numeric Value in a Cell Based on Text in Another Cell

    In advance, thanks for your assistance. I'm trying, in vain, to assign a numeric value in a cell based on text (from a dropdown menu) in another cell. For example, in cell A5 I have a dropdown list that includes the options "blue", "red", "white", and "gold." I want cell C15 to be 2 if A5="blue"; I want C15 to be 0 if A5="red"; I want C15 to be 2 if A5="white"; and, I want C15 to be 1 if A5="gold."

    Tippet,
    This is a job for LOOKUP.
    The expression for the Result cell is: =LOOKUP(A2, Lookup :: A1:A4, Lookup :: B1:B4)
    The aux. table contains the matches that you assign for the colors.
    Regards,
    Jerry

Maybe you are looking for

  • Finder opens instead of applications when clicked on the dock

    Hi I am having and issue where if you click on an application on the dock, the finder window opens and shows the application in the finder instead. I have tried trashing the dock preferences and setting the mouse/keyboard preferences to default. I ha

  • IPad USB Code 43 in Windows 7

    So I just got an iphone and upgraded the OS.   Now ever time I connect my Ipad to the Computer (Windows 7 Desktop), I get a code 43 error on the device.   Ipad and Ipod touch work ok as well.   Just the IPAD seems to not want to connect. Seems to be

  • ALI to RAW format for triggerring mail

    Hello all, i have a requirement wherein i have to send a classical report output to PDF and trigger mail. Have almost did that using CALL FUNCTION 'SAVE_LIST', CALL FUNCTION 'TABLE_COMPRESS'. But whenever CALL FUNCTION 'SAVE_LIST' is getting executed

  • Variable linesize

    Is there a way to set the linesize to a variable length? I'm creating a pipe delimited data file that would have a max linesize of 700, but a majority of the records use only about 60% of that. I'd like to limit the size of the file so I'm looking fo

  • Sending Customer Invoices by Email

    Hi, I would like to Configure this functionality where instead of printing reports they are sent out by email to the customers. I am a Basis consultant and i have configured in the SAP system so that SMTP is working and we can send external email fro