+ Reply to Thread
Results 1 to 10 of 10

formula to show data for branch

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    formula to show data for branch

    hello

    having some trouble or rather logic approach

    i have 3 drop down list (region, district, branch), all dependent on on another *although im having some trouble showing branch*

    -i would like:
    in column E *see attached* for all zip codes to show for the corresponding branches
    i.e. chicago-milwaukee is a district, if i select D "chicago"...colum N *red cell - formula not working* shows all zip codes, but when all zip codes have been shown for chicago, i want it to show milwaukee

    formula in column E:
    {=INDEX(Zip,SMALL(IF(_Branch='Master assignment sheet'!$D15,ROW(_Branch)-ROW(BranchStart)+1),COUNTIF('Master assignment sheet'!$E$15:$E15,$E15)),3)}

    that is the logic errror im having....can someone pls help!!!!
    Attached Files Attached Files
    Last edited by jw01; 01-10-2012 at 12:15 PM.

  2. #2
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: formula to show all zip codes for branch

    any suggestions guys!!?? pls and thx u

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: formula to show all zip codes for branch

    Replace COUNTIF with ROWS,

    =INDEX(Zip,SMALL(IF(_Branch=D$15,ROW(_Branch)-ROW(BranchStart)+1),ROWS(E$15:E15)),3)

    Note: Your file has more 32000 rows data, So Array formula will slow down the calculation.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: formula to show all zip codes for branch

    hello haseeb

    thxs alot for your help.

    question, how can i make it on the last row ie. if chicago has listed all the possible zip code, so it to list milwaukee as it is paried with it inthe district (chicago-milwaukee)? can u pls help....and i cant seem to get the branch drop down to be dependent or at least show both the branch. let me know . thank you.

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: formula to show all zip codes for branch

    would it be possible to write a macro for it to dump the zip codes for the selected district by showing the branch? pls and thx u for your help

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: formula to show all zip codes for branch

    Hello Jw01,

    I don't know about VBA. It is better to move your thread to Programming section. Send a request to a moderator to move it to programming section.

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: formula to show all zip codes for branch

    Haseeb
    thx u so much.

    do you know how i can fix the branch issue taht im having with the drop down?

    currently in column D, if i select a district, it only shows on branch i.e. new york-long island...it show new york. not both.

    can u possible help? thx u sir!

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: formula to show all zip codes for branch

    You have already District & Branches in Col_M:N so define a name as Dist on refers to,

    Please Login or Register  to view this content.
    Then in the DV list use =Dist

  9. #9
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: formula to show all zip codes for branch

    hello haseeb

    sory for the confusion

    Column D should be the branches that show in column C
    i.e.


    i just dont get the formula thxs
    Last edited by jw01; 01-10-2012 at 12:16 PM.

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: formula to show all zip codes for branch

    See the attached for dependent DV. You can add/delete region, dist, entries etc...
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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