+ Reply to Thread
Results 1 to 10 of 10

Correction of formula.

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Correction of formula.

    Hello Again,

    I am writing a formula which display a cell value from other sheet. If the cells are empty from current sheet i.e. F30 & F31 then it should display the value from the other sheet. but when i enter value in F30 or F31 i.e. % it is not changing the values. Below is the formula.

    Please Login or Register  to view this content.
    I hope the above details are enough to solve this issue. Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Correction of formula.

    Without seeing what this is working with, its hard to say, but to begin with, it looks like your some of your and() functions are either unnecessary, or you are closing them too soon?

    try this?

    =IF(AND('Calculation Result'!B48=0,'Calculation Result'!B48=""),"",IF($F$30="",'Calculation Result'!B48,IF($F$31="",'Calculation Result'!B48,SUM('Calculation Result'!B48)*$F$30*$F$31)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Correction of formula.

    Thanks for our response Mr. FDibbins. The formula provided to me doesn't work.

    Here are the details of the work.

    I am displaying a values from sheet Calculation Sheet to current sheet. And on current sheet i have 5 cells which multiply i.e % to the given cell values.

    Example:

    I have a value 5000 from other sheet in cell and i am entering a value 1.25% in F30 and left blank F31 it should given me 6250. If i enter 1.25% in F31 by keeping the value of F30 same it should give me 7813.

    Before it is working but after changing the formula =5000*F30*F31 to the above formula it is not working.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Correction of formula.

    I have a value 5000 from other sheet in cell and i am entering a value 1.25% in F30 and left blank F31 it should given me 6250. If i enter 1.25% in F31 by keeping the value of F30 same it should give me 7813.
    5000*1.25% will give you 62.5, not 6250. even if you add them together (ie 5000 * (1+1.25%), you will still only get 5062.5. the only way you will get 6250 is is you add 25% to 5000

    Im thinking that, to give the numbers you want, your formula needs to ne something like this....

    =IF(AND('Calculation Result'!B48=0,'Calculation Result'!B48=""),"",'Calculation Result'!B48*IF(AND($F$30="",$F$31=""),1,(1+$F$30)*(+1$F$31))) where both F30 and F31 = 25%

    If this doesnt work for you, perhaps it would be easier to help you if you uploaded a sample workbook, showing what data you are working with, a few examples of what your expected outcome would be, and how you would arrive at that (remove any confidential info if necessary).

  5. #5
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Correction of formula.

    Still getting wrong result.Please find the sample workbook. If you help me to setup one rest i will do.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Correction of formula.

    thanks for the file, it helped a lot.

    Try this....
    =IF(AND('Calculation Result'!B4=0,'Calculation Result'!B4=""),"",'Calculation Result'!B4*IF($F$12="",1,$F$12)*IF($F$13="",1,$F$13))

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Correction of formula.

    hi hecgroups, maybe just:
    =IF('Calculation Result'!B4=0,"",'Calculation Result'!B4*IF($F$12="",1,$F$12)*IF($F$13="",1,$F$13))

    or if what you want to do is to multiply when F12:F18 has numbers, try:
    =IF('Calculation Result'!B4=0,"",PRODUCT('Calculation Result'!B4,F12:G18))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  8. #8
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Correction of formula.

    it works. Thanks for your valuable time and help. topic marked as closed and reputation added. In case if i have any problem i will get back to you.

  9. #9
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Correction of formula.

    Hai Mr. FDibbins still it is displaying 0 (Zero) if the value on other sheet is Zero. I need is blank not Zero.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Correction of formula.

    Change the AND to OR

    edit: a re-think of the formula....
    IF('Calculation Result'!B4+0=0,0,'Calculation Result'!B4*IF($F$12="",1,$F$12)*IF($F$13="",1,$F$13))
    Last edited by FDibbins; 01-19-2013 at 04:10 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1