+ Reply to Thread
Results 1 to 12 of 12

Help with Conditional formatting to use arrows based on Traget that changes everyweek

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help with Conditional formatting to use arrows based on Traget that changes everyweek

    Hi All

    I'm not sure if what I have in mind is possible but any help or advise is appreciate it.

    I have a spreadsheet which contains sales figures for each week on separate worksheets, i.e. the figures (which are ranked) for week one is in WS1 and for week 2 in WS2 etc for each division (there are twenty of them)

    What I need to do is form a weekly league chart for sales within each division.

    I have set the worksheets correctly but what I am required to do is to put up or down arrows in the cell using the following criteria
    as an example in week 2 I have WS2 which contains sales figures for week 2. what I need to do now is to look at the rankings in WS1 for week 1 and insert an arrow in week 2 for the same division, so that if the sales for that division has increased compare to previous week then it will show a green arrow and if its down it shows the red downward arrow. then for week 3 it then needs to look at the figures in WS2 and see whether in week three they have improved or not.

    At the moment I am doing this manually as the figures change every week against the previous one I.e. there is no set target but just a comparison to performance against its previous week for the same. The name of the worksheets are WS1 , WS2 .....

    Is there a way I can automate this as it is currently time consuming doing it manually. I need to get he logic sorted out and then need help with the formula or even a VB code to do this

    any help is appreciate it

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    i think you should be able to use an index/match formula to look up WS1 and compare the weeks
    And then WS3 with WS2
    you would need to do this for each sheet

    it maybe possible to be clever and use a indirect function to get the name of the sheet and the last 1/2 digits to get the number of the week and then take off 1 - so that the formula is the same for all 52 sheets
    problem would possible be comparing ws1 with Ws52

    BUT

    to help and provide a formula we need to see the structure of the data
    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    Thanks for your reply.

    I have attached a mock workbook to illustrate what I need to do. This is a very simple version but if I can get formula for this to do what I need to do then I can apply it to my main spreadsheet.
    What I need is to have conditional formatting in WS2 to do the following:

    Look at the rank in WS1 for Shoes and see whether ranking has improved or not. If ranking is improved then insert a Up Green arrow in G7 in WS2 for Shoes, and the same for the other divisions i.e. Men's performance vs. Men's from WS1 and insert Green Up Arrow if its improved, Red Down Arrow if it has gone done or side arrow if it stayed the same.

    Same thing again for WS3 but compare the ranking with the rankings in WS2 and for WS4 compare with WS3 and so on.
    At the moment I am inserting the arrows manually which is very time consuming. Formula or VB script will be really useful.

    My Original spreadsheet has lots of divisions and I will eventually have 52 sheets.

    Hope this clarifies what I need to do and any help is appreciate it.
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    I have used this formula
    =IF(INDEX('WS1'!$F$7:$F$11,MATCH('WS2'!B7,'WS1'!$B$7:$B$11,0))>F7,3,IF(INDEX('WS1'!$F$7:$F$11,MATCH('WS2'!B7,'WS1'!$B$7:$B$11,0))<F7,1,2))

    which will look up the value and do the conditional formatting

    comparing the ranking ONLY - is that the comparison you want
    OR
    did you want to compare the % budget numbers rather than ranking

    Also i need to think a little longer about how to change the formula so it works on all sheets rather than you have to modify and enter

    here is the sheet for WS2
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    Thank you so much for this. Yes I need to compare the % change if that is easy to do as there are other coliumns which I need to do the same for.

    I really appreciate our help and time with this, this will help me so much in future.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    That would just mean changing the F reference to E and the < to > and < to >
    =IF(INDEX('WS1'!$E$7:$E$11,MATCH('WS2'!B7,'WS1'!$B$7:$B$11,0))<E7,3,IF(INDEX('WS1'!$E$7:$E$11,MATCH('WS2'!B7,'WS1'!$B$7:$B$11,0))>E7,1,2))

    BUT that will change the figures completely when compared to the ranking
    see attached new column H in WS2
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    Thanks again. This is what they need and it works fine. I just wait to see if you can come up with A WAY TO AUTOMATE THIS FOR EVERY SHEET IF NOT THIS IS 100 TIMES BETTER THAN WHAT I HAD.

    tHANKS AGAIN

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    will the range be identical on all Sheets - as with indirect, that will be fixed and so if it changes on sheets , that will all need to be retyped anyway

    once/if i get it to work
    got the sheet name and can take 1 away and reconstruct - so i can get the previous sheet name OK - just cant get the indirect to work right now
    BUT
    before continuing would be good to know the way it will be used ?

  9. #9
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    yes the range is excatly the same on all sheets, they will not change, the figures are the only thing which will change on a weekly basis.

    Thanks again for your help

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    try this formula

    =IF(INDEX(INDIRECT("WS"&MID(RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1),1)),3,2)-1&"!E7:E11"),MATCH(B7,INDIRECT("WS"&MID(RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1),1)),3,2)-1&"!B7:B11"),0))<E7,3,IF(INDEX(INDIRECT("WS"&MID(RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1),1)),3,2)-1&"!E7:E11"),MATCH(B7,INDIRECT("WS"&MID(RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1),1)),3,2)-1&"!B7:B11"),0))>E7,1,2))


    I have added to all sheets here

    No error handling though
    so #N/A or #REF may occur

    i have also not considered
    wk1 compared to wk52 or 53
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    Thank you so much for the time and effort you put into this. This works perfect.

    Thanks again

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Help with Conditional formatting to use arrows based on Traget that changes everyweek

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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. Conditional Formatting - Arrows Up and Down Based on Cells
    By seannydj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2014, 05:20 PM
  2. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  3. I want to use conditional formatting-Icon sets-5 arrows with a formula
    By Gustjuarez in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-20-2013, 06:06 AM
  4. [SOLVED] Conditional Formatting with Colored Arrows
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2013, 09:24 PM
  5. SaveAs with WeekNum to update the file name everyweek
    By iwilli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2012, 04: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