+ Reply to Thread
Results 1 to 8 of 8

Need formula to follow a specific order, please help.

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    24

    Need formula to follow a specific order, please help.

    Hello everyone,

    I have 3 Sheets, one is a template, other is a Data file i recieve everyday other is a merge between those two files, ill explain in detail.
    A simple example of my template file:

    Name Phone Gender Product



    A simple example of my Data file:

    Abc 123 Male Z
    Def 456 Male X
    Ghi 789 Female C
    Jkl 101 Female V


    And a simple example of how the Merge file should be:

    Name Phone Gender Product

    Abc 123
    #BlankCell##BlankCell# Male
    #BlankCell# #BlankCell# #BlankCell# Z
    Def 456
    #BlankCell# #BlankCell# Male
    #BlankCell# #BlankCell# #BlankCell# X
    Ghi 789
    #BlankCell# #BlankCell# Female
    #BlankCell# #BlankCell# #BlankCell# C
    Jkl 101
    #BlankCell# #BlankCell# Female
    #BlankCell# #BlankCell# #BlankCell# V



    The merge file is " importing " data from the other two files, problem is when i drag it down, it looks like this instead:

    Name Phone Gender Product
    Abc 123
    #BlankCell# #BlankCell# Male
    #BlankCell# #BlankCell# #BlankCell# X

    Jkl 101
    #BlankCell# #BlankCell# Female
    #BlankCell# #BlankCell# #BlankCell# V



    I can "lock" the values of the static fields of the template, using $A$1, for example.
    But i need the drag down formula to follow the order of the data file, not the order it's using right now.

    Can someone please help me with this ?
    I don't know if i managed to explain myself properly, if you have any questions, please ask.

    Thank you, have a nice day !

    Note: I'm sorry, i don't know how to simulate blank cells in this table to place my values at the right position... #BlankCell# is, well, a Blank Cell
    Last edited by Darker0ne; 05-07-2014 at 10:03 AM. Reason: Add the proper spacing for better understanding, sorry ...

  2. #2
    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,882

    Re: Need formula to follow a specific order, please help.

    You might have better success at getting a response if you attach a sample workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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

  3. #3
    Registered User
    Join Date
    12-17-2013
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Need formula to follow a specific order, please help.

    TestWorkBook.xlsx

    Hello again,

    As alansidman sugested i uploaded a example WorkBook.

    Sheets :

    File

    Is where i paste the file i recieve and it formats the fiels like i want.

    FileWithFormulas

    Is the sheet arranged with the formats i need, and how i need them to be.

    PasteSpecialValues

    I copy "FileWithFormulas" and Paste Special / Values, so i get a table with the correct formats/results, but without formulas.
    Is also the sheet i import values to "FinalResult"

    Template

    Is the sheet where i import to "FinalResult" the template for the client, so i have to fill in data on those 3 lines, and each 3 lines represent a single client.

    FinalResult

    Is the merge/import data of "PasteSpecialValues" and "Template" in it's final state.
    Where each 3 lines represent a client, although, in "PasteSpecialValues" each line represents a client.
    That's why it goes wrong, and why i am here to ask you guys for help.

    When i select the data, and dropp it down, line 1 of "PasteSpecialValues" is ok, but next aren't, because formula jumps to the line it was droped, so, line 4/5/6 of "FinalResult" are lines 4/5/6 of "PasteSpecialValues", and i want it to be just line 2.


    I hope i managed to explain myself in a better way this time, thanks!

  4. #4
    Registered User
    Join Date
    12-17-2013
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Need formula to follow a specific order, please help.

    Please !

    Can someone help me with this issue ?!

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need formula to follow a specific order, please help.

    Pl see attached file with new formulas to enable the dragging of A2:K4 range.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-17-2013
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Need formula to follow a specific order, please help.

    Works perfectly !
    Can't thank you enough.

    Is possible to explain the formula please ?

    Many thanks !

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need formula to follow a specific order, please help.

    Thanks for the compliments.
    Pl Mark thr thread SOLVED.
    In the formula
    =INDIRECT("PasteSpecialValues!A"&2+INT((ROW(A1)-1)/3))
    When pasted to next Cell, there is shift of 3 rows. ROW(A1) will be ROW(A4).
    But value of
    INT((ROW(A4)-1)/3)
    Increases by 1 only.That is what is required.

    INDIRECT formula converts String To Range.
    For Step by step check
    Formulas --> Evaluate Formula --> Evaluate.

  8. #8
    Registered User
    Join Date
    12-17-2013
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Need formula to follow a specific order, please help.

    how i make thread solved please ?

+ 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. Sort order for characters & symbols - does anything follow z?
    By Neil Goldwasser in forum Excel General
    Replies: 7
    Last Post: 07-23-2022, 02:45 PM
  2. Macro for replacement of codes in excel order and follow up documents
    By sthlmeskimoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2013, 04:01 PM
  3. [SOLVED] Formula to pull specific information from a list in the correct order
    By Sleepyshy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-05-2012, 11:36 AM
  4. [SOLVED] Formula to retrieve mutiple values less than value in specific cell, but in date order.
    By rocksan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2012, 11:33 PM
  5. LOOKUP follow up (pull only specific column)
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2012, 11:34 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