+ Reply to Thread
Results 1 to 4 of 4

how to use Loop for calculating number

  1. #1
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    how to use Loop for calculating number

    Hi There,

    Please help me to calculate equation using loop

    Equation below

    1^p + 2^P........... N^P

    I want to use inputbox for P and N

    and sum value of this equation would came in msg box

    I had tried but somewhere I stop

    Here attached is the sheet Kindly help me

    ThanksUntitled.png
    Attached Files Attached Files
    Last edited by rishikrsaw; 03-23-2017 at 07:43 AM. Reason: inserting image

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

    Re: how to use Loop for calculating number

    Try this ...
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: how to use Loop for calculating number

    not working

  4. #4
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: how to use Loop for calculating number

    I had use below and got my result

    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)

Similar Threads

  1. Calculating number of times individual number appears in a pivot table
    By snoopy1461 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-15-2014, 08:39 AM
  2. [SOLVED] calculating a row with loop function not working
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-05-2013, 11:08 AM
  3. [SOLVED] Loop for calculating the sales for a given area and a commodity
    By crr.potluri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2013, 11:44 PM
  4. [SOLVED] VBA loop to copy a worksheet a number of times, assign name each time based on loop number
    By TBG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 10:54 PM
  5. Do-While loop within a do-while loop? Dealing with changing number of rows
    By Motox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2012, 12:59 AM
  6. VBA For loop where number of iterations can be changed from inside loop
    By barrboy89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2011, 12:18 PM
  7. Macro loop Problem (Calculating persons age)
    By PRodgers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2009, 10:02 AM

Tags for this Thread

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