+ Reply to Thread
Results 1 to 3 of 3

How can I iterate/loop through a table without using VBA?

  1. #1
    Registered User
    Join Date
    10-17-2024
    Location
    London
    MS-Off Ver
    Latest
    Posts
    1

    How can I iterate/loop through a table without using VBA?

    Whenever I have to do something like this, I throw VBA at it. However, I'm working for a client that doesn't allow VBA or macros to be run on-site.

    I have tabularised data:

    ____A B C D E F G H I J . . .
    Date 1 1 2 1 4 1 1 5 1 0 1
    Date 2 1 0 0 0 0 0 1 1 0 1
    Date 3 2 0 2 1 2 5 1 5 1 0
    Date 4 0 0 0 0 0 0 0 0 0 0
    Date 5 1 1 1 0 0 0 0 0 0 0
    .
    .
    .

    I want to loop through this table on different dates, and create a table that looks like this:

    Date 1 A
    Date 1 B
    Date 1 C
    Date 1 C
    Date 1 D
    Date 1 D
    Date 1 D
    Date 1 D
    Date 1 E
    .
    .
    .

    How can I do this using standard excel formulas and not using VBA?

    Please see attached for workbook data.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: How can I iterate/loop through a table without using VBA?

    Will they allow Power Query? It looks like a basic "unpivot" operation, and Power Query has a built in command for unpivot https://support.microsoft.com/en-us/...5-f588221c7098
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: How can I iterate/loop through a table without using VBA?

    Try this,
    Please Login or Register  to view this content.
    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)

Similar Threads

  1. [SOLVED] Excel 2019 Unable to get a sub to loop or iterate down the rest of the worksheet
    By Belinea2010 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-21-2024, 05:51 PM
  2. [SOLVED] Iterate over Data Model Pivot Table
    By jrean042 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2021, 04:55 PM
  3. Word VBA for loop to iterate through each cell selected by mouse
    By foxtrotter in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2019, 09:55 PM
  4. [SOLVED] Iterate through Array While in For Each loop
    By stusic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2017, 03:08 PM
  5. [SOLVED] For loop to iterate Cell Row in a Formula
    By Excelerate1 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-18-2017, 08:15 PM
  6. [SOLVED] Auto email loop with formatted table data breaking on second loop VBA
    By Who_else in forum Excel General
    Replies: 6
    Last Post: 03-24-2016, 06:22 AM
  7. to iterate within selected range and loop
    By dazzwilliams in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2011, 01:27 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