+ Reply to Thread
Results 1 to 27 of 27

Formula to allocate name and count in col 'F'.

  1. #1
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Formula to allocate name and count in col 'F'.

    Hi Forum team,

    I have just working on worksheet i need formula to Drag Allocation in DATA file Cp and Qty wise in col 'F' and insert Blank row after Cp name in col F.

    I have attached sample data file. any help Greatly appriciate.

    Thanks in advance.
    Attached Files Attached Files
    Happy to Help

    VISHA

    Click *, if the suggestion helps you!
    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your thread as Solved"

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Based on your data size it is better to go for VBA solution.

    Please confirm whether VBA solution is ok for you?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Quote Originally Posted by :) Sixthsense :) View Post
    Based on your data size it is better to go for VBA solution.

    Please confirm whether VBA solution is ok for you?
    Hi,Sixthsense

    Ok no problem .

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Try the below code….


    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Hi,Sixthsense

    code Allocate cp in DATA sheet correctly but need to insert row after cp name for whole row ,and one more thing after allocation code drag again cp name.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    The provided code working fine for in the file which you have attached in Post #1

  7. #7
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Quote Originally Posted by :) Sixthsense :) View Post
    The provided code working fine for in the file which you have attached in Post #1
    Ok got it Sixthsense Thank u very much.
    Last edited by visha_1984; 11-25-2013 at 04:48 AM.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Glad it helps you and thanks for the feedback and rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Hey Sixthense,

    one more Q if i want to start new allocation from row number 'F3414' is it possible for next time.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    No.. lot of complication will occur since the code was written based on your initial requirement stated in post #1.

  11. #11
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Ok No problem Thanks once again.

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    If needed then let me know I will modify the code to suit your requirement.

  13. #13
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Hi,Sixthsense
    I need it because i received daily allocation 15-16 times, but if it is possible then modify it.

    Good day.

  14. #14
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Just confirm me whether each time the data can be populated in new sheet? or it should be updated in the end of the Output Sheet?

  15. #15
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    It should be update in the end of Output sheet.

  16. #16
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Try the below code...

    You have to select the Data range and Allocation Range Manually. Made it user defined range so than you can select your desired range on which the macro needs to be performed.

    Please Login or Register  to view this content.

  17. #17
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Great Sixthsense,

    It works fantastic thanku very much.
    U save My 3 workinghours per day.

    cheers.'''.

    All the best.

  18. #18
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Glad it helps you and once again thanks for the feedback

  19. #19
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Hi Seixthsense,

    I have one issue while alocating cp allocation,If in DATA sheet there is 2 or 3 Break in all col then what should i do and code allocating '-1' qty in output folder.
    pls suggest

  20. #20
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Please show a sample workbook to know in which circumstances the provided code is getting failed and for my testing purpose too...

  21. #21
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Quote Originally Posted by :) Sixthsense :) View Post
    Please show a sample workbook to know in which circumstances the provided code is getting failed and for my testing purpose too...

    attached sample workbook.
    Attached Files Attached Files

  22. #22
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    In your data sheet select Column-A and press Ctrl+G>>Special>>Select Blanks>>Click Ok>>Press Ctrl+ - button>>Select Entire Row>>Click Ok...

    Now run the provided code.

  23. #23
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Hi Sixthsense,

    Thanks for your reply
    but i dont want to delete entire row ,if there is blank row then allocate CP 2 time in output sheet

    in my attachment for exp- if CHACHA ENTERPRISES-PUNE_394780 - 70
    then first drag 21 then 49 qty

    pls check attachment for your ref
    Attached Files Attached Files

  24. #24
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Sorry I am not interested to do the amendments which you ask in separate intervals.

    You have to manage the little things. Just duplicating the sheet and deleting the blanks is not a big task and somethings you can do it manually.

    Sorry to say that I can't provide support further for this post and I hope someone will take care of your new requirements.

  25. #25
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Hi Sixthsense,

    pls help if i select range manually for second lot code should drag from selected range, but i macro code draging another range.

    pls help me out i have attached sample workbook.
    Attached Files Attached Files

  26. #26
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to allocate name and count in col 'F'.

    Oopsss.... Just replace the below line

    Please Login or Register  to view this content.
    With

    Please Login or Register  to view this content.

  27. #27
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Formula to allocate name and count in col 'F'.

    Thanks once again Sixthsense.
    Good Day.

+ 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] Count / Allocate number in list
    By Starkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2013, 08:53 PM
  2. Trying to add to a Rand formula to allocate tasks/units
    By Holly123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2013, 10:44 PM
  3. Replies: 0
    Last Post: 05-10-2013, 08:08 AM
  4. [SOLVED] Formula help : Sort by number range and then allocate different coloured cells
    By gandk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2012, 01:38 AM
  5. formula to allocate points to positions in a race
    By SEVKN in forum Excel General
    Replies: 2
    Last Post: 10-14-2008, 02:52 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