+ Reply to Thread
Results 1 to 35 of 35

Formula to multiply values

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Formula to multiply values

    Hello

    i nedd a formula to multiply where i have the value, i will work with 2 collums.
    I have attached a file to explain better because my englis is not very good


    So i nedd when i put a value on the cell "E2" they will multyply by the cell "c2" but if i put the vaule on the cell "G2" to multiply by the cell "c2".
    The value on the "E" cell it will be always the same (6,5)

    Can anyone help me to arrange one formula to do this automatically, that dont need to change every time the formulas.

    Thanks in advancedteste.xlsx

  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
    53,048

    Re: Formula to multiply values

    Maybe this?

    =C2*IF(G2="",E2,G2)
    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
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    i put that formula in the exceel sheet and didnt work

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to multiply values

    where do you want your result to be..?
    where should i put the formula...?


    vikas

  5. #5
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    The result it should apears in the G collum. So the formula is will be on the G collum

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to multiply values

    I think there is something wrong in your question...
    explain with a dummy correct answer (example) in your worksheet...

    vikas

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to multiply values

    I think there is something wrong in your question...
    explain with a dummy correct answer (example) in your worksheet...

    vikas

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    are you looking for something like this? =IF(E2="","",C2*E2)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  9. #9
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    Example
    A B C D E F G
    ARI10 WHITE 10,10€ 1 6,5 = 1X6.5X10.10 = 65.65€

    ARI10 WHITE 10,10€ 6,5 3,90 = 10.10 x 3.90 = 39.39€

  10. #10
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    example.jpg

    there you have the example

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    is this getting closer? =IF(D2="",C2*E2,D2*C2*E2)

    EDIT: or maybe this instead...
    =IF(D3="",C3*F3,D3*C3*E3) looks closer.
    Last edited by Sam Capricci; 07-02-2014 at 12:58 PM.

  12. #12
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    sorry but didnt work

    I have put an image for example

  13. #13
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    HI,

    try This =IF(D2>0,(E2*D2*C2),IF(F2>0,(F2*C2),""))
    Punnam

  14. #14
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    Let me restate what I think you're trying to get to (and this is from your jpg).
    if there is a value in col D, multiply C with D with E, if there is no value in D, multiply C with F.
    that is what you put in your picture (jpg). So that is what I put in my edited response with post 11.
    Last edited by Sam Capricci; 07-03-2014 at 06:31 AM.

  15. #15
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to multiply values

    Hi bro,
    check the attachment for the solution..


    click * to appreciate..
    Attached Files Attached Files

  16. #16
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to multiply values

    Did that helped bro...?

    waiting for your reply...

    if helped click *

  17. #17
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    it is only to multiply per 6,5 if i have a value on the collum "D" UNITS (= C2*D2*E2), if i dont have any value on the collum "D" is to multiply the collum "F" per "C"

    Thanks

  18. #18
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    hi hallaw81,

    Please address the name to whom are u refeering the post 17 ?

    Punnam.

  19. #19
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    is for Vikas or other person that can help me
    Last edited by hallaw81; 07-03-2014 at 06:47 AM.

  20. #20
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    Have u checked mine i.e punnam .

  21. #21
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    I still think you're not clear enough on what values satisfy your conditions.
    The formula I gave you would work returning the values you specified in your jpg.
    AND it seems to satisfy what you wrote in post 17 too, my formula says that if there is a value in D multiply it with C and E, if not multiply C and F.
    Punnam gave you a sheet with values that he believes satisfies your conditions.
    Why don't you take Punnam's sheet and put in, for example col H what the values should be so people can figure out the formula that will get you there?

  22. #22
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    Conditional Multiply-1.xlsI try the punnam's formula and dont work.

    please see the attachement to see the example

  23. #23
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    so G2 is ok but G3 is not, how about G4 through G8?

    EDIT, because I put my formula in and it gives both the correct results for G2 and G3.

    EDIT2: BTW if you want G4 and any others to be blank if no values are in D or F then change my formula to this...
    =IF(AND(D2="",F2=""),"",IF(D2="",C2*F2,D2*C2*E2))
    Last edited by Sam Capricci; 07-03-2014 at 10:53 AM.

  24. #24
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    hi sambo Kid, thank you very much for your help and to others too.

    if you see the sheet that i have attached on my last post you can see if i dont put any value on the cells ( D or F ) the result is not correct. it multiply always the value on the cell C per E.
    I will always put one value on the cell D or F. so if i put one value on D cell they will multiply the C * D*E or if i put a value on the F cel it only multiply per the C cell ( F*C)

    Sambo KID i have already put your formula and dont work.

    I´m sorry for my english but is not very good

  25. #25
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    Hi,

    Do a favour plz update manually all the possible answers for sample table u have provide, so that we shall come different possible ways.


    Punnam

  26. #26
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    so will this work for you?
    =IF(AND(D2="",F2=""),C2*E2,IF(D2="",C2*F2,D2*C2*E2))

  27. #27
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    please see the attached file.

    many thanks
    Attached Files Attached Files

  28. #28
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    hi,

    One more condition what should it happen if both Column D & F are blank ?

    Punnam

  29. #29
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Formula to multiply values

    So looking at your attachment, in row 3 you have the value in G3 as E3*F3 but you note in H3 that it should be C3*F3, which is it?
    I agree w/Punnam, you need to tell us what happens if D is blank OR F is blank AND if D AND F are both blank so we can give you the correct formula.

  30. #30
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    Hi,

    try this the formula is more or less same as Sambo Kid Post 27,it will return " " if Column d & F are Blank.

    Punnam

  31. #31
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    Quote Originally Posted by Punnam View Post
    hi,

    One more condition what should it happen if both Column D & F are blank ?

    Punnam

    it will be always one value at the cell cell D or F. So i put a value on D cell or F

  32. #32
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Formula to multiply values

    Then
    try this
    =IF(AND(D2="",F2=""),"",IF(D2>0,(C2*D2*E2),IF(F2>0,(C2*F2)," ")))

    Punnam

  33. #33
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    Quote Originally Posted by Sambo kid View Post
    So looking at your attachment, in row 3 you have the value in G3 as E3*F3 but you note in H3 that it should be C3*F3, which is it?
    I agree w/Punnam, you need to tell us what happens if D is blank OR F is blank AND if D AND F are both blank so we can give you the correct formula.
    The value on F cell will multiply always by the cell C only. The cell D multiply by the cell C and E always.
    Last edited by hallaw81; 07-03-2014 at 01:03 PM.

  34. #34
    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
    53,048

    Re: Formula to multiply values

    Quote Originally Posted by hallaw81 View Post
    The result it should apears in the G collum. So the formula is will be on the G collum
    You seem to be contadicting yourself...
    i put a value on the cell "E2" they will multyply by the cell "c2" but if i put the vaule on the cell "G2" to multiply by the cell "c2"
    and based on your picgture, mu formula returns the same answer...
    =C2*IF(G2="",E2,G2)

  35. #35
    Registered User
    Join Date
    06-23-2014
    Location
    PT
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula to multiply values

    Quote Originally Posted by FDibbins View Post
    You seem to be contadicting yourself...


    and based on your picgture, mu formula returns the same answer...
    =C2*IF(G2="",E2,G2)

    i have explain mysellf wrong sorry

    this is what i need

    The value on F cell will multiply always by the cell C only. The cell D multiply by the cell C and E always.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 06-27-2014, 08:11 AM
  2. Multiply Cells Which Have Values By a Formula
    By Jrub in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2012, 11:02 AM
  3. Multiply values and sum together
    By rhudgins in forum Excel General
    Replies: 2
    Last Post: 10-06-2011, 12:35 PM
  4. Find values position in table between two values, multiply by adjacent value
    By bradfordstl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2011, 01:14 PM
  5. Excel 2007 : values multiply
    By mihnea in forum Excel General
    Replies: 2
    Last Post: 04-05-2011, 04:29 PM

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