+ Reply to Thread
Results 1 to 5 of 5

Help with the "," (comma's) in this formula...

  1. #1
    Registered User
    Join Date
    03-14-2017
    Location
    Yorkshire
    MS-Off Ver
    2010
    Posts
    2

    Lightbulb Help with the "," (comma's) in this formula...

    Can anyone tell me what commas mean in a formula, for example in the following:
    =ipmt(e6/12,b13,e8,-b6) - I just don't get what the commas mean in this particular formula, help?? Lindsey

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Help with the "," (comma's) in this formula...

    See link for IPMT function detail.
    https://support.office.com/en-us/art...rs=en-US&ad=US

  3. #3
    Registered User
    Join Date
    03-14-2017
    Location
    Yorkshire
    MS-Off Ver
    2010
    Posts
    2

    Thumbs up Re: Help with the "," (comma's) in this formula...

    thanks for your reply, I am starting out with formulas and have come across various exercises on line to practise with, seems this particular one is a bit complex for me. thanks again

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Help with the "," (comma's) in this formula...

    Commas are just separators that divide up the various arguments within the function. In some locales (not the UK!) semi-colons are used instead because a comma is a decimal separator.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Help with the "," (comma's) in this formula??... They are jus seperating arguments ;)

    Hi LindseyJBat,
    Welcome to ExcelForum
    It sounds like you are at a fairly early stage.

    This might help.

    I am not giving specific codes or formulas or functions.
    I am just trying to give you the general idea of what is going on.

    Let’s say we have two people.
    _ You
    and
    _ a Microsoft Excel Computer Engineer that has developed a thing for you to use to add two numbers.

    The Computer Engineer wrote a code. This is what it looks like ( “Pseudo” code ):

    _.......________________
    Function AddTwoNumbers(Take As Number_One, Take As Number_Two) Giveback As Number

    10 Let SumOfNumbers = Number_One + Number_Two
    20 Let AddTwoNumbers = SumOfNumbers

    End of Function
    _.........________________

    Here again, the same code, in the Forum Code # Tags Window which we use at ExcelForum to make the Thread look a bit more tidy:
    _........___
    Please Login or Register  to view this content.
    _........____


    Now let’s say, you want to add two numbers, 5 and 6, using Excel

    What you do in order to do that, is to write something like this:

    = AddTwoNumbers(5, 6)

    After you do that, the code ( Function ( or Formula if you prefer ) ) springs into action. It recognises those two numbers you gave. One says that those two numbers are valid “arguments” required for that Function to work.


    This is what actually happens:

    The Function ( Formula if you prefer ) code, named AddTwoNumbers starts “running” at, if you like, the start of the full “Formula String” which you wrote, - it starts reading across from the left:
    ..= AddTw----...............

    It then, as it goes across from left to right in “reading” what you wrote, it recognises the two numbers that you “gave”, 5 and 6. We say it recognises the two numbers as valid ( or “syntaxly correct” ) “arguments” for it to consider.

    So Excel “reads” across that _ AddTwoNumbers(5, 6)_ . It recognises that it has a valid couple of numbers necessary for it to then go and do what it is has been created to do. So Excel then will go and do that. ( That is just the way Excel has been designed to do ) . It effectively “goes off to” that Function code , ( Formula if you prefer ) , named AddTwoNumbers, and follows first the code instruction, 10, which makes
    10 SumOfNumbers = 5 + 6 = 11 ( 10 and 20 are just code line numbers for convenience. You can use them or not , as you choose. Code line numbers are not used much these days. These days the codes usually just go from top to bottom and ignore most line numbers. I just personally like to use them when explaining things ;-) )

    The next code instruction,
    20 , is to make AddTwoNumbers = SumOfNumbers = 11 . This last statement might sound a bit weird initially, but the following should help make that make more sense:
    When a code ( Function ) of the sort I am discussing Ends, then we say something like “control is passed back” to where the Function was Called from. What that means in plain English is that you go back to the ( right ) end of what you wrote,
    = ......---ers(5, 6)

    But now, at this point in time, that _ = AddTwoNumbers(5, 6) _ has been changed into a number, 11 , by the “running” through of that code.

    _......

    So if you type that Formula including the two arguments of (5, 6) , then you will actually see afterwards 11 in the place where you typed in _ = AddTwoNumbers(5, 6)

    ( Technically , the code actually starts after you hit Enter )

    _...

    Coming back to your initial question
    ipmt is a Function written by some Microsoft person. As Ali said, the comma’s are just there to separate your arguments.


    The nice thing about Excel, is that you can yourself write a Function to do anything you want to do. It is not too difficult. You could write a Function called, say, LindseyAddNumbers.

    You could write it such that it looked similar to the code I showed.
    Then if you wrote in any cell , like_..
    = LindseyAddNumbers(1,1)
    _.. then, after you hit Enter, you would get 2 displayed in that cell

    Of course, with Excel you could write a Function to do almost anything you want.

    Hope that helps

    Alan

    P.s. If you are finished with this forum Thread which you started, then could you have a go at marking it as SOLVED please. See here for how to do that:
    https://www.excelforum.com/developme...ml#post4605543

    P.P.s. If you think you may ask for help here again, in this, or in another Thread, then if you have not done so already, we ask if you could please have a quick read of the Forum Rules and posting technique suggestions. It is usually worth it in the long run.
    See here:
    https://www.excelforum.com/forum-rul...rum-rules.html
    http://www.excelforum.com/showthread...42#post4519006

    Thanks
    Last edited by Doc.AElstein; 03-15-2017 at 10:04 AM.
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

+ 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. [SOLVED] replace "," comma with "." period
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-11-2023, 05:03 PM
  2. [SOLVED] formula needed for adding character "comma".
    By chillath in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2016, 05:54 AM
  3. Separate cell which have "Comma" into different row & multiple each row "n" times
    By Arun ebl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 11:22 PM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. [SOLVED] no comma separator for ="total"&"$ "&sum(a1:a10)
    By Jeff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2006, 12:14 PM
  6. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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