+ Reply to Thread
Results 1 to 4 of 4

Converting to SAS EM transactional format (vlookup?)

  1. #1
    Registered User
    Join Date
    04-27-2014
    Location
    South Bend
    MS-Off Ver
    Excel 2013
    Posts
    2

    Converting to SAS EM transactional format (vlookup?)

    I have some data in Excel that I want to use in SAS Enterprise Miner, but I need to change the Excel data into something that SAS EM can understand. I've attached a picture of what I'm trying to do and the Excel file with my data. I've tried using vlookup and index but really have no idea how to do this. Any help would be greatly appreciated!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Converting to SAS EM transactional format (vlookup?)

    Hello and Welcome to the forum
    in L2 copy paste below
    =SUM($C$2:K2)

    in M1 type Customer Number and In M2 copy paste Below then hold control and shift together and hit enter to make it array formula
    =INDEX($A$2:$A$4999,MIN(IF(ROW(A1)<=$L$2:$L$4999,ROW($L$2:$L$4999)-1)))

    in N1 type Listing and In N2 copy paste Below then hold control and shift together and hit enter to make it array formula
    =INDEX($C$1:$K$1,SMALL(IF(INDEX($C$2:$K$5000,MAX(IF($A$2:$A$5000=M2,ROW($A$2:$A$5000)-1)),0)=1,COLUMN($C$1:$K$1)-2),COUNTIF($M$2:M2,M2)))

    Then drag both the formula down.

    You need to drag the formula down up to 14655 rows. In attached file it is only upto 5000 rows.
    Attached Files Attached Files
    Last edited by hemesh; 04-27-2014 at 01:45 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    04-27-2014
    Location
    South Bend
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Converting to SAS EM transactional format (vlookup?)

    THANK YOU SO MUCH HEMESH! Your response was well explained and answered my question fully. I can't explain how grateful I am for your help - thank you thank you thank you!

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Converting to SAS EM transactional format (vlookup?)

    You are welcome and I am glad I could help you.
    You can say thank by clicking add rep icon in the bottom left corner of my post.

+ 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. Replies: 5
    Last Post: 04-01-2014, 09:37 AM
  2. Creating a Transactional Tracking Database
    By marshymell0 in forum Access Tables & Databases
    Replies: 1
    Last Post: 01-01-2013, 09:11 PM
  3. Aligning product features into transactional columns
    By matt2345 in forum Excel General
    Replies: 4
    Last Post: 09-16-2011, 12:18 AM
  4. Converting number format to time format
    By mbarr in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-28-2011, 09:19 AM
  5. converting date format to text format
    By membership in forum Excel General
    Replies: 4
    Last Post: 03-17-2010, 03:24 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