+ Reply to Thread
Results 1 to 16 of 16

Entering two indepenadant arguments to the same cell

  1. #1
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Entering two indepenadant arguments to the same cell

    Ok the below formula is working well, however I now need to add an independent formula "SUM(A4,B4)/2*M4" to the same cell to return either or both results, can I do this?

    =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3)

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Entering two indepenadant arguments to the same cell

    Not sure where do you want to implement it and how? can you please explain it a bit more??


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    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,044

    Re: Entering two indepenadant arguments to the same cell

    based on what?

    write the new formula as you think it should be - dont worry about syntax or "correct" wording - just write it out how you would say it. We can take it from there
    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

  4. #4
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Entering two indepenadant arguments to the same cell

    I need two arguments in the same cell with either or both values returned

    Argument 1. cell 1 + cell 2 divided by cell 3 multiplied by cell 4

    Argument 2. =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3)

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Entering two indepenadant arguments to the same cell

    How the both arguments should be shown?? should be added or??

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Entering two indepenadant arguments to the same cell

    FD's 1k point may have made him a little giddy (and congrats btw!)
    I would like to see some kind of expected output at least...lol
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  7. #7
    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,044

    Re: Entering two indepenadant arguments to the same cell

    that still doesnt tell us how argument 1 fits into argument 2?

    Also, assuming A1 = 1 A2 = 2, A3 = 3, A4 = 4...
    argument 1 formula could be...(A1+A2)/A3*A4 = 5.00...or it could be....A1+(A2/A3)*A4 = 4.333...or it could be....(A1+(A2/A3))*A4 = 8.3333....and there are other variations too. You really need to be more specific in your explanations!

    lol i got 1100 now dred, but thanks a bunch though

  8. #8
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Entering two indepenadant arguments to the same cell

    Yes show the PRODUCT of both results

  9. #9
    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,044

    Re: Entering two indepenadant arguments to the same cell

    Hensgen, if you expect realist help, instead of pure guess work regarding what you mean, and what you are trying to do, PLEASE explain clearly what you are trying to do. remember, you know exactly what you want, we have no clue, we are relying on you to explain to us

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Entering two indepenadant arguments to the same cell

    Although this is honestly NOT how I like to do this, from your explanation, the result of the if formula gets multiplied by the other formula?
    =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3) * SUM(A4,B4)/2*M4
    not sure this is what you want, because if the IF formula results in a false, all you are goting to get is 0...but this is all I can understand of what you've posted so far...

  11. #11
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Entering two indepenadant arguments to the same cell

    dredwolf, FDibbins, thanks in advance for your continued patience....

    =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3) * SUM(A4,B4)/2*M4

    what I require - if the formula returns "TRUE" then Data!L3 + SUM(A4,B4)/2*M4

    If the formula returns "FALSE" then SUM(A4,B4)/2*M4 only in required

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Entering two indepenadant arguments to the same cell

    What a strange thread - reminds me of the saying "... like getting blood from a stone ..."

    Anyway, I think you mean this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps.

    Pete

  13. #13
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Entering two indepenadant arguments to the same cell

    =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3+SUM(A4,B4)/2*M4,SUM(A4,B4)/2*M4)

    Edit: and i think this...now there are many confused .
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  14. #14
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Entering two indepenadant arguments to the same cell

    vlady, well done, this seems to be delivering what i require............thanks for your help
    will now run some further simulations to test it

  15. #15
    Registered User
    Join Date
    01-27-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Entering two indepenadant arguments to the same cell

    Ok, the formula is working well, I now need to reiterate the formula many times (each time with modified reference cells) in the same cell
    Eg: =IF(AND(AJ12=TRUE,AH12=Data!$K$3),Data!L3+SUM(A4,B4)/2*M4,SUM(A4,B4)/2*M4,IF(AND(AJ12=TRUE,AH12=Data!$K$4),Data!L4+SUM(A5,B5)/2*M5,SUM(A5,B5)/2*M5)))
    however I cant get this to work as there seems to be a missing parenthesis?

  16. #16
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Entering two indepenadant arguments to the same cell

    can you try this one. Not Tested.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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