+ Reply to Thread
Results 1 to 5 of 5

Loop through list of data and calculate values

  1. #1
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Loop through list of data and calculate values

    I have a list of Currencies against the USD rate.

    I basically want to loop through this data to calculate each currency against all the other currencies.

    For example on the Input sheet I would want to work out the ANG rate against all other rates shown in the ExampleOutput sheet.

    So ANG against ARS would be cell E2 divided by E3 and ANG against AUD would be cell E2 divided by E4.

    I want to loop through all of this data before going to the next currency and starting again.

    So in this example the next currency would be ARS and the first calculation I would want to do would be ARS against ANG so cell E3 divided by E2 before moving onto ARS against ANG (Cell E3 divided by E4) and so on..............

    Is anyone able to help?

    Thanks in advance

    McC
    Attached Files Attached Files
    Last edited by mccrimmon; 12-23-2010 at 11:52 AM.
    McCrimmon

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Loop through list of data and calculate values

    This is the format I would recommend. A table style should make looking up rates much easier.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Re: Loop through list of data and calculate values

    I need to loop through it and have it in that format so I can use the data to do a comparison against a similar set of data and then delete any that is not on the 2nd list.

    Is anyone able to help?

    Thanks

  4. #4
    Registered User
    Join Date
    08-23-2010
    Location
    india,Chennai
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Loop through list of data and calculate values

    Try this

    for output as values

    Please Login or Register  to view this content.
    for output as formulas

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Loop through list of data and calculate values

    see attachment
    Attached Files Attached Files

+ 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