+ Reply to Thread
Results 1 to 22 of 22

Calculate a series number

  1. #1
    Forum Contributor
    Join Date
    09-07-2015
    Location
    indonesia
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 64-bit
    Posts
    171

    Calculate a series number

    Dear Friends,
    Need help how to create a formula
    in column A there is 2/100,3/400, 5/100, 6/100, 7/100, 8/100 and in column B is total. total should be 900
    Please advise which formula need. for details, please find the attached file. thank you

    Wie
    Last edited by AliGW; 12-30-2016 at 01:10 PM.

  2. #2
    Registered User
    Join Date
    11-28-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Calculate a series number

    Hi,

    What is 2/100, 3/400, is it row number 2 and 3 and value it contains? Can you elaborate a bit more?

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

    Re: Calculate a series number

    You might want to view the attachment, Hitesh.
    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.

  4. #4
    Forum Contributor
    Join Date
    09-07-2015
    Location
    indonesia
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 64-bit
    Posts
    171

    Re: Calculate a series number

    Hi Hitesh,
    2/100 = size/qty. details in attached file. thanks

    Wie
    Attached Files Attached Files

  5. #5
    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: Calculate a series number

    Quote Originally Posted by AliGW View Post
    You might want to view the attachment, Hitesh.
    When the question was asked, there was no attachment
    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

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calculate a series number

    Hi

    Although a formula could work for your sample,

    I doubt that a formula is what you are looking for.

    Paste this code into a Macro Module.

    Please Login or Register  to view this content.

    Then put this formula into B2.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Calculate a series number

    If I may say, the attachment does not include too many additional details. Are there more requirements or limitations or scenarios? Are you required to perform the entire summation in a single cell formula, or are you open to other possibilities? What exactly is the logic behind the 900 results? As near as I can tell, it is simply the sum of the denominators/qty values (100+400+100+100+100+100), is that correct, or is there more to it?

    Here's how I would probably approach something like this:

    1) Text to columns to split the text string out and isolate the individual values into individual cells. Use delimited by comma "," and slash "/".
    2) Then you can simply sum every other column, or use a SUMIF()/SUMIFS() function if you have a header row with size/qty.

    Is that an approach you would be interested in?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Forum Contributor
    Join Date
    09-07-2015
    Location
    indonesia
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 64-bit
    Posts
    171

    Re: Calculate a series number

    Dear MrShorty,
    Yes, I'm interested in split the text and use SUMIF()/SUMIFS() function
    Please help to advise

    Wie

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

    Re: Calculate a series number

    Quote Originally Posted by FDibbins View Post
    When the question was asked, there was no attachment
    Yes, I know, which is why I pointed out that there now was one. I also removed the attachment from post #1 as it is repeated in post #4.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Calculate a series number

    Quick tutorial on using the Text to Columns command: http://www.excel-easy.com/examples/text-to-columns.html
    Help file for the SUMIFS() function: https://support.office.com/en-us/art...6-611cebce642b

    Put "size" into A1, "qty" in B1, then copy those two cells across as far as needed.
    With delimited text in A2 (and down, if there is more than one row of data), execute text to columns.
    In column to the right of parsed data, enter a SUMIFS() function. Maybe in AA2 =SUMIFS(A2:Z2,A$1:Z$1,"qty") Note the mix of relative and absolute references for easy copying down to additional rows.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: Calculate a series number

    Here's another possibility. In B2, copied across until 0s are returned:

    =IFERROR(MID(TRIM(MID(SUBSTITUTE($A2,",",REPT(" ",100)),100*(COLUMNS($A:A)-1)+1,100)),FIND("/",TRIM(MID(SUBSTITUTE($A2,",",REPT(" ",100)),100*(COLUMNS($A:A)-1)+1,100)))+1,255)+0,0)

    Then just add them up!
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Calculate a series number

    This should give you the total of 900
    Enter as regular formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The part {1,2,3,4,5,6} count of slashes in the string.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,004

    Re: Calculate a series number

    Alkey... Only just brilliant. Truly the indisputable King of parsing!!!!

  14. #14
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Calculate a series number

    I have modified the above formula to make the count of slashes dynamic.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculate a series number

    Sorry, didn't see the attachment.

    With the values in A1:A6 enter this Array Formula in B1 (enter with Ctrl+Shift+Enter)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    1
    2/100
    900
    2
    3/400
    3
    5/100
    4
    6/100
    5
    7/100
    6
    8/100
    Last edited by newdoverman; 12-30-2016 at 05:52 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  16. #16
    Registered User
    Join Date
    12-19-2016
    Location
    Rawalpindi, Pakistan
    MS-Off Ver
    MS Office 2016.
    Posts
    18

    Re: Calculate a series number

    =sumproduct(--(left(a1:f1,find("/",a1:f1)-1)))&"/"&sumproduct(--(replace(a1:f1,1,find("/",a1:f1),"")))

  17. #17
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Calculate a series number

    or can try below formula
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  18. #18
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calculate a series number

    Hi Alkey

    Thanks for the lesson

    But if you change A2 to 2/100,3/400,5/100,6/100,7/2, 8/7 your formula returns 715.

    The only way I could get it to return 709 was modify it to:-

    Entered using Ctrl Shift Enter:

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


    Please show me how it should be done.
    Last edited by mehmetcik; 12-31-2016 at 06:06 PM.

  19. #19
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Calculate a series number

    Quote Originally Posted by mehmetcik View Post
    The only way I could get it to return 709 was modify it to:-
    Simple formula ...

    =SUM(IFERROR(--(MID(SUBSTITUTE(SUBSTITUTE(A2,"/",","),",",REPT(" ",100)),200*COLUMN(A:Z)-100,100)),""))

    Array formula.

  20. #20
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Calculate a series number

    Thankyou, Phuocam,

    That is much nicer.

  21. #21
    Forum Contributor
    Join Date
    09-07-2015
    Location
    indonesia
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 64-bit
    Posts
    171

    Re: Calculate a series number

    Dear Friends,
    Thank you for your help. that solved my problem

    Regards,
    Wie

  22. #22
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Calculate a series number

    deleted wrong thread

+ 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] code for Calculate the following series 1 + ½ + ¼ + 1/8 + 1/16 ... "
    By petrwurfs in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-09-2014, 06:13 PM
  2. [SOLVED] How Can I Calculate a Series of Row's Totals?
    By Sandcastle in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-07-2014, 02:14 PM
  3. Replies: 1
    Last Post: 08-05-2014, 05:03 AM
  4. [SOLVED] Create number series based on another number series
    By hbangalore in forum Excel General
    Replies: 8
    Last Post: 04-05-2012, 01:22 PM
  5. Calculate series of numbers with different values
    By caldera55 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2008, 06:08 PM
  6. Calculate terms in a Series
    By BarbV in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-03-2005, 11:05 PM
  7. How to calculate NPV of an infinite series?
    By Mike in forum Excel General
    Replies: 2
    Last Post: 09-15-2005, 02:05 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