+ Reply to Thread
Results 1 to 11 of 11

[SOLVED]Looking for Formula to sort My data

  1. #1
    Registered User
    Join Date
    05-30-2016
    Location
    Pune,India
    MS-Off Ver
    MicroSoft Office 2007
    Posts
    6

    [SOLVED]Looking for Formula to sort My data

    Kindly Refer the Attachment to properly understand the problem.

    i want to fill all the Empty cells ( in both 'Sector' and 'Dept Date' Columns ) using some formula.

    Have tried 'Vlookup' which is a failure , Hence at the Moment i am simply Copy-Pasting the 'Data' which is in very first cell above the Empty Cells.
    and its the only way at the moment which gives me correct data,but for sorting Huge data of thousands of Rows its very cumbersome and time consuming.
    Hence am looking for some formula which could be of help in getting me the same data which is in the sheet named 'Final Data Must be like This'

    Hope some body could assist me with the same.

    'Custom' sort is of no help here in my instance as there are other factors like 'Total count of PNR' is also included . if i do 'custom sort' then PNRs are getting Repeated even if they are on the same sector.

    Thanks & Regards
    Attached Files Attached Files
    Last edited by DavidNoahIsaac; 06-02-2016 at 12:14 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Looking for Formula to sort My data

    Am I missing something as "Final Data ..." appears to be a sorted version of "Raw Data: if "Raw data" is the source data why not a "Custom " sort?

  3. #3
    Registered User
    Join Date
    05-30-2016
    Location
    Pune,India
    MS-Off Ver
    MicroSoft Office 2007
    Posts
    6

    Re: Looking for Formula to sort My data

    yes , i have sorted the data to show that final data must appear like this after the formula is applied on sheet 2 ,
    can we custom sort the 'raw data' to appear as it is in ' Final Data ... ' ?
    actually i need a formula to apply in similar scenarios.
    Last edited by DavidNoahIsaac; 05-30-2016 at 04:05 PM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Looking for Formula to sort My data

    Yes you can sort to get the "Final...." from "Raw Data": that's what I did and hence my earlier question.

    I am still confused by
    i need a formula to apply in similar scenarios
    How do you derive Sheet2 ??

  5. #5
    Registered User
    Join Date
    05-30-2016
    Location
    Pune,India
    MS-Off Ver
    MicroSoft Office 2007
    Posts
    6

    Re: Looking for Formula to sort My data

    after applying Pivot on raw data i get the Sheet 2.
    there are atleast 26 columns in Raw Data when we retrieve the data from server.
    here i have just given a brief example of actual data.

    i think i am not able to properly put the question here in the given example.
    the thing is that i need to lookup the pivoted data and get same result as is in "Final data..."

    Vlook up fails because it repeats the same thing which it fetches in its first lookup.
    Last edited by DavidNoahIsaac; 05-30-2016 at 04:26 PM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Looking for Formula to sort My data

    O.K - I 'm sure you'll come back if you need further assistance. The number of columns is immaterial with regard to the sort so (as I understand your requirement) sort is still an option.

    I see little point in the Pivot if you then need to "reformat" to get the final result.

  7. #7
    Registered User
    Join Date
    05-30-2016
    Location
    Pune,India
    MS-Off Ver
    MicroSoft Office 2007
    Posts
    6

    Re: Looking for Formula to sort My data

    ok buddy ,thanks for the answer

    'Custom' sort is of no help here in my instance as there are other factors like 'count of PNR' is also included . if i do 'custom sort' then PNRs are getting Repeated even if they are for the same sector and same date.
    Last edited by DavidNoahIsaac; 05-30-2016 at 05:12 PM.

  8. #8
    Registered User
    Join Date
    05-30-2016
    Location
    Pune,India
    MS-Off Ver
    MicroSoft Office 2007
    Posts
    6

    Re: Looking for Formula to sort My data

    Quote Originally Posted by JohnTopley View Post
    O.K - I 'm sure you'll come back if you need further assistance. The number of columns is immaterial with regard to the sort so (as I understand your requirement) sort is still an option.

    I see little point in the Pivot if you then need to "reformat" to get the final result.
    'Custom' sort is of no help here in my instance as there are other factors like 'Total count of PNR' is also included . if i do 'custom sort' then PNRs are getting Repeated even if they are for the same sector and same date.

    Without Pivot we wont be able to get the Final Data as it must be.

    kindly Check the new attachment to get my point .
    Attached Files Attached Files
    Last edited by DavidNoahIsaac; 05-30-2016 at 06:00 PM. Reason: uploaded new Attachment

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Looking for Formula to sort My data

    See Sheet "SUMMARY"

    Copy first row of "Sheet2" to row 2 of "SUMMARY"

    in A3 of "SUMMARY"

    =IF(Sheet2!A3<>"",Sheet2!A3,Summary!A2)

    in B3 of SUMMARY

    =IF(Sheet2!B3<>"",Sheet2!B3,Summary!B2)

    in C3

    =Sheet2!C3

    in D3

    =Sheet2!D3


    Copy down
    Attached Files Attached Files
    Last edited by JohnTopley; 05-31-2016 at 03:05 AM.

  10. #10
    Registered User
    Join Date
    05-31-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    1

    Re: Looking for Formula to sort My data

    Hi David,

    You may consider doing this, without tricky formula.

    Step 1. Select the table (A2:D23)
    Step 2. Go to Home > Find & Select > Go to Special...
    Step 3. Tick the Blanks then click "OK"
    Step 4. Cell B3 is now able to put formula, input "=B2" (PS. please remove the " sign)
    Step 5. Hold the ctrl button then press enter button.

    Hope it helps.

    Regards,

    Joseph

  11. #11
    Registered User
    Join Date
    05-30-2016
    Location
    Pune,India
    MS-Off Ver
    MicroSoft Office 2007
    Posts
    6

    Re: Looking for Formula to sort My data

    Thank you so much @jzuela,that helps !!! and its definitely made the job damn easy
    By the way while playing around found one more way to do the same..
    In pivot table itself go to 'Field Setting' ( for whichever row you want to fill the blanks automatically)
    'Layout & Print' and tick the box 'Repeat item Lables'

    @John Topley,thank you for your assistance as well

+ 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 Data using Formula
    By lu10nt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2016, 09:19 AM
  2. Some sort of formula to match data
    By Who_else in forum Excel General
    Replies: 2
    Last Post: 01-13-2015, 03:57 AM
  3. Need a formula to sort data from one table to another
    By KellyAustralia in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-03-2014, 10:02 PM
  4. If formula to sort data
    By adamheon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 02:45 PM
  5. A formula to sort data?
    By clynesy88 in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 10-14-2012, 08:32 AM
  6. Sort data with formula?
    By SubwAy in forum Excel General
    Replies: 9
    Last Post: 06-02-2012, 04:54 AM
  7. Formula to sort data
    By inky in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-13-2008, 08:32 PM

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