+ Reply to Thread
Results 1 to 4 of 4

Text-to-column with a complication

  1. #1
    Registered User
    Join Date
    07-07-2021
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    2

    Question Text-to-column with a complication

    Hello all! Happy to join the community.

    I have the following hard-coded in a single cell:
    -2657.83 2015-06-15, 2707.13 2015-08-21, 100.04 2015-08-23

    These are essentially:
    CASHFLOW1_AMOUNT CASHFLOW1_DATE, CASHFLOW2_AMOUNT CASHFLOW2_DATE, CASHFLOW3_AMOUNT CASHFLOW3_DATE and so on.

    My objective is to calculate a XIRR= using these cash flows and dates. Therefore, I need to extract it in a format like: the amounts next to each other in consecutive cells; and then the dates next to each other in consecutive cells. That way, I can then run a XIRR(values,dates).


    + Bonus question: the above is an example for one row of data. I have 50,000 rows and some of them have 3 cash flows, some other 4, etc. Is there a way (doing the above) to automatically align all cash flows and align all dates?


    Thank you in advance.
    Attached Files Attached Files
    Last edited by enjoylois; 07-07-2021 at 01:46 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Text-to-column with a complication

    It would help if you attached a sample Excel workbook, so we can see the variations in your data as well as what you are trying to achieve. The yellow banner at the top of the screen gives details of how to do this.

    Pete

  3. #3
    Registered User
    Join Date
    07-07-2021
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    2

    Re: Text-to-column with a complication

    Thank you Pete, that is done.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Text-to-column with a complication

    With Power Query, you can manipulate the data as desired.

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. IFStatment complication
    By ct00010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2021, 12:26 PM
  2. Removing Duplicates Complication
    By MikeSham in forum Excel General
    Replies: 5
    Last Post: 07-04-2016, 11:42 PM
  3. [SOLVED] Copying from one sheet to another with complication
    By tony7262 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-26-2016, 11:19 AM
  4. [SOLVED] Referencing a cell complication
    By trainerwatts3 in forum Excel General
    Replies: 4
    Last Post: 10-31-2014, 09:59 AM
  5. [SOLVED] Conditional Formatting Complication
    By Graphic Allen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2014, 10:41 AM
  6. [SOLVED] Help with extracting dates out of brackets: complication...
    By leopoldc in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-31-2013, 11:14 PM
  7. [SOLVED] Swap text in a cell complication
    By alexxshadows in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-14-2012, 09:06 PM

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