+ Reply to Thread
Results 1 to 25 of 25

Rearranging Datewise horizontally in a specified format from Raw data

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Rearranging Datewise horizontally in a specified format from Raw data

    Hi,

    As enclosed in my sample data , I have a Data Sheet in which raw data exist.From this data,I want to arrange data in the format which is shown in "Result"sheet.Following things should be extracted

    Column A (Date) of result sheet should be extracted from Column A(Date) of Data sheet

    Column B (Name of Party) of result sheet should be extracted from Column C (Particulars) corresponding to the entry of Column I(Credit) of Data sheet

    Column J (Total) of result sheet should be extracted from Column I (Credit) of Data Sheet & must be corresponds to Column B (Name of Party) of result sheet.Only numeric data should be taken.

    Column C (Particulars) of result sheet should be extracted 1 row below of "as per details" of Column C from Column C(Particular) of Data sheet

    Column E (Taxable Purchase) of result sheet should be extracted from Column H (Debit) of Data Sheet with a condition of that it corresponds to the Column C
    (Particulars) of result sheet & it does not contains 'pp' in the sentences that is displayed in every entry in Column C just before date of Column A.It should contain only numeric data.

    Column F (Taxable Import) of result sheet should be extracted from Column H (Debit) of Data Sheet with a condition of that it corresponds to the Column C (Particulars) of result sheet & it does not contains 'Bill No' in the sentences that is displayed in every entry in Column C just before date of Column A.It should contain only numeric data.

    Column G (Vat) of result sheet should be extracted from Column H (Debit) of Data Sheet with a condition of that it corresponds to the Column C (Particulars) of result sheet.It(Column H) is the amount that is just right to "as per details" of Column C of Data Sheet .

    Column H (Vat in Custom) of result sheet should be extracted from Column H (Debit) of Data Sheet with a condition of that it corresponds to the Column C (Particulars) of result sheet.It(Column H) is the amount that is just right to "as per details" of Column C of Data Sheet .

    Column I (Excise Duty) of result sheet should be extracted from Column H (Debit) of Data Sheet with a condition of that it corresponds to the Column C (Particulars) of result sheet.It(Column H) is the amount that is just right to "as per details" of Column C of Data Sheet .It should be noted that 'Excise Duty' name is itself is present in Column C of Data sheet,hence accordingly it should be done.

    Column D (Reference No.) of result sheet should be taken from Column C (Particulars).The data should be extracted that contains " Bill No...." or " PP no...". with suffix numeric value to every " Bill No...." or " PP no..."

    Hope this would provide sufficient information.This(Result Sheet) is simply,the breakdown in horizontal form datewise of every entry that is shown datewise in Data Sheet.


    With Best Rgds,
    Suresh
    Attached Files Attached Files

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hello Paradise what does it mean
    Can you explain column E F H and I what is required as this is what i am confused.
    Last edited by hemesh; 10-21-2013 at 02:39 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    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
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    I think you are looking something like this (Check Vat1)

    Could you give an idea about column E F H what is required as this is what i am confused.

    All formulas used in the sheet are array formulas, you need to hold control and shift then hit enter to make them work in case you change anything
    Attached Files Attached Files
    Last edited by hemesh; 10-21-2013 at 03:26 AM.

  4. #4
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi,
    Thanks for the reply.

    For Column E

    For column E (Taxable Purchase) first you should have to identify in Column D (Reference No.) whether it is in sentence "Bill No." or "PP No.",if it is 'Bill no.' mentioned then value should be extracted from Column H (Debit) of Data Sheet else should be left blank in this Column E(Taxable Purchase).

    For Column F

    But when in the sentence,if it is 'PP No.' mentioned then value should be extracted from Column H (Debit) of Data Sheet else should be left blank in this Column F(Taxable Import)

    Now the question arises for Column G (Vat) and Column H ( Vat in Custom).If above two is solved then this two column would be lot easier as these two columns are linked with them.

    If Column E (Taxable Purchase) has value then Column G (Vat) must have value (which currently u have done )of Column H (Debit) that is just right to (as per details) of Data Sheet.

    If Column F (Taxable Import) has value then Column H (Vat in custom) must have value (which is currently in column G as per your calculation this should be trfd to Column H of result sheet)of Column H (Debit) that is just right to (as per details) of Data Sheet.

    In nutshell, splitting of data of column G (vat) in result sheet as per your existing formula into column G (Vat) & Column H (vat in custom). Column G value must be there when Column E has value else Column H & Column F.

    Also note that, if in Column D(Reference No.)' Bill no.' or 'PP No' is not mentioned then Keep the value in Column E & G assuming the condition that it has 'Bill No.'.

    Hope this would be suffice info.If you require further then do let me know.

    With Best Rgds,
    Suresh

    P.S:You have extracted full sentence in Column D(Reference No.) that much is not required only extract either "Bill No.." or " PP No.." else "".
    Last edited by paradise2sr; 10-21-2013 at 04:31 AM.

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hello Paradise please upload a work book with atleast 5 rows worth of data of expected result. In Result sheet

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Pls find enclosed in attachment.

    With Best Rgds
    Attached Files Attached Files

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    For row number 297 you have two entries in I column(299 & 300).Does both the entries should appear for same date.It is creating some problem to write formula.

  8. #8
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi,

    For row number 297 you have two entries in I column(299 & 300).Does both the entries should appear for same date.

    Yeah this should appear on the same date.Just move the value of I column of row 299 by inserting an additional column in between column I & column J of my Sheet Result(Revised) with heading as TDS.Remaining row 300 as usual like others.

    In otherwords,
    I have overlooked,you can just insert that data in my sheet result(revised)after Column I (Excise Duty) i.e in between Column I (Excise Duty) and Column J (Total) of my revised sheet,so that I can get TDS A/c amount also.Move column J (Total) to Column K (Total) .And now Column J (TDS) would appear.

    If further info is required then do let me know.
    With Best Rgds,

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Find the attached!!
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi,

    Kindly take into consideration the post #7-8.Also in the enclosed workbook, in column D (Reference No.) Only extract "Bill No." or "PP No." or "Receipt No.." remaining other things should not be there,it should be left blank.See row 11,19,22-23,31-32,35-36,38,42,47,51,54,59-62,75,76,81,88-90.Lengthy sentence should not be there in.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 10-21-2013 at 10:41 AM.

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hello There !!!!!
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi,
    Thanks for the reply,

    You are requested to add two more column data in the result sheet.One column as stated earlier was that of TDS from Column I (credit)of Data sheet into result sheet as mentioned in post #8-9
    For row number 297 you have two entries in I column(299 & 300).Does both the entries should appear for same date.

    Yeah this should appear on the same date.Just move the value of I column of row 299 by inserting an additional column in between column I & column J


    Secondly,which offcourse I did not mentioned in all my post from beginning is that Column G of Data Sheet.This you can do at the end of all column or anywhere in result sheet.

    Lastly, would you like to revised all the formula for google docs spreadsheet.I have tried but it does not work.If possible then kindly do,otherwise do rest of two queries.
    After this I will go minutely,if any further changes are required or not or any queries are there to be asked or not.

    You did a great work.

    With Best Rgds,
    Suresh

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Please upload a new workbook with addition to be made and results expected. Moreover I dont know how to convert the formulas for google docs that you can search over internet or else can take the advantage of Commercial services provided by our forum.

  14. #14
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Quote Originally Posted by hemesh View Post
    Please upload a new workbook with addition to be made and results expected. Moreover I dont know how to convert the formulas for google docs that you can search over internet or else can take the advantage of Commercial services provided by our forum.

    Hi,

    I have enclosed in attachment.The formula where you have made in "Result"worksheet,there I inserted One column i.e D with expected results in few rows extracted from "Data" sheet and another column i.e L with expected result in row 75 of L column i.e L75 from "Data" sheet but it should be noted that since this is the sample workbook,there might be a large number.

    Well I am trying for google docs forum too to get the expected result based on your hardwork.As I am trying to use the combination of both.

    Hope you have understood.

    With Best Rgds,
    Suresh
    Attached Files Attached Files

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    I will have a look at it

  16. #16
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Quote Originally Posted by hemesh View Post
    I will have a look at it
    Ok I will be eagerly waiting for your reply.

    With Best Rgds,

    Suresh

  17. #17
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi Himesh & Other forum Contributors,

    Still could not get reply from you (Himesh).

    Is there anyone would could solve the remaining problems-

    I did not mentioned in all my post from beginning is that pulling of data of Column G of Data Sheet into "Result" sheet with corresponding to other data pulled from Data sheet.This you can do at the end of all column or anywhere in result sheet, here for example I have mentioned in Column D highlighted with "Yellow" colour .
    .

    Pls refer to my this post #14 for excel file enclosed.

    In addition to it, Can formula of Column E (Reference No.) of "Result" sheet can be shorten,it's very long and difficult to understand.(This I have posted at :http://www.excelforum.com/excel-form...ml#post3451258
    with an due to a very long discussion here.

    I would be eagerly waiting for the reply.

    With Best Rgds,
    Suresh
    Last edited by paradise2sr; 10-25-2013 at 03:28 AM.

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hope this message finds you in cheers
    TDS column will work only if particulars reflects " TDS A/C"
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi Hemesh,

    Thanks a lot.You did a splendid work.I am marking this thread as solved.However,I have posted in a next thread regarding shortening of Reference No. column formula of Result sheet that you provided.Anyone might make short without alteration in result.

    Anyhow thanks again.

    With Best Rgds,
    Suresh

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    You are welcome paradise !

  21. #21
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi himesh,

    If u don't mind ,can u share me the knowledge by explaining your array formula by breakup so that I can use in other practical problems.I did not under stand your next part of formula using small & if .

    Can u help me in learning it.

    With Best Rgds
    Last edited by paradise2sr; 10-25-2013 at 02:17 PM.

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    if function find the rows which are not blank and returns the row number like 4,8,12,16 etc. then starting row number here means $A$4 will make these row numbers as 0,4,8,12 and adding 1 to them will create the actual row numbers for index function like 1,5,9,13 and so on.

    syntax for small function is small(array,K) here K is the number to extract like 1 or 2 or 3 etc.
    out of these created array of row number small will pick 1st smallest value then second smallest then third and so on.
    here K is Rows($a$1:A1) which creates K as 1,2,3 and so on.......

    select the row with formula go o formulas option and click evaluate formula for best understanding

  23. #23
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    OK I will try.

  24. #24
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hi,
    Let me elaborate where I am wrong in my syntax or understanding-

    Syntax= iferror((................),"")....................is already cleared to me.

    Secondly,
    Syntax =INDEX( array, row_number, [column_number] )....................here it is confusion to me
    Here, array = Data!$A$4:$A$395
    row_number = SMALL(IF(Data!$A$4:$A$395<>"",ROW($A$4:$B$395)-ROW($A$4)+1),ROWS($A$1:A1))
    Simplification of "row_number"
    Syntax = small ( array,k)

    here this array = ?????? should this be= IF(Data!$A$4:$A$395<>"",ROW($A$4:$B$395)-ROW($A$4)+1) as it brings =1,5,9,13,18,22,26,30 i.e

    {1;FALSE;FALSE;FALSE;5;FALSE;FALSE;FALSE;9;FALSE;FALSE;FALSE;13;FALSE;FALSE;FALSE;FALSE;18;&.............. by using Ctrl+shift+enter(CSE)

    k = ROWS($A$1:A1) = 1 and on subsequent row it brings 1,2,3,4,5,6,7 & so on.

    Now when I use this function small (array,k) using helper column, it is getting error.

    I have enclosed an workbook at the last sheet "Breakdown of formula",I have used 5 helper column where 5th is final result and 4 helper column are the breakdown of your formula.Kindly have a look into it, where I am wrong ?

    With
    Best Rgds
    Attached Files Attached Files

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

    Re: Rearranging Datewise horizontally in a specified format from Raw data

    Hello Paradise in your formula for column C you should use
    =SMALL($A$3:A3,B3) and drag down
    Because the range you are trying to specify in your formula is just one value

    secondly you need to put if function with small function because without small function you will get only row no. one every time. copy paste below in A3 to get the desired result
    =SMALL(IF(Data!$A$4:$A$395<>"",ROW($A$4:$B$395)-ROW($A$4)+1),ROWS($A$1:A1)) to get the correct values

    if function generates the rows and then small picks the smallest 1 ,2,3 and so on as you go down.
    Last edited by hemesh; 10-26-2013 at 03:33 AM.

+ 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] [How] Place Horizontally Adjacent Cells in Vertical Format
    By chocochoco in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-17-2013, 06:00 PM
  2. Report in datewise
    By jaganexcel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2013, 05:02 AM
  3. Date Duration and Output datewise
    By exlove in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2012, 06:47 AM
  4. Rearranging tables into six-column format
    By The_YongGrand in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 11-24-2009, 10:05 AM
  5. Data extraction:giving datewise requirement of parts
    By Jimmy Joseph in forum Excel General
    Replies: 1
    Last Post: 07-07-2006, 05:55 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