+ Reply to Thread
Results 1 to 18 of 18

Help copying a formula pattern and colour fill

  1. #1
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Help copying a formula pattern and colour fill

    So I'm pretty much self taught, I can work my way around a spreadsheet but I don't know the quickest most efficient ways so I thought I'd come ask a true expert.

    The screen shot below shows what I'm currently working on for a professional sports tipster, now I know what to do and how to do it but doing it fast and with 0 errors is another story.

    Now 01.08.2018 is formulated and setup correctly as is 02.08.2018 now the only problem I'm having is when I try highlight and drag to auto formulate its messing the colours up, and also its not copying the pattern so the data is wrong. How can I do this more accurately so it copies the pattern.

    Further details, I'm basically trying to work out the strike rate for certain units which we use to bet with so for example 1 unit is £20, 0.5 units is £10 etc etc. So all i want to do is input the data from the daily tracker to the chart but of course theres 29-31 days in a month so as its a new feature I'm trying to catch up and I'm just trying to get the pattern to copy suit so chart 1 is from day one, chart 2 is day 2 and I want to drag it down and it automatically pull data from the remaining days. Not because I'm lazy but because it will mean a lot less errors if i have to manually input it.

    Attachment 586567

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    You're trying to fill down the the merged cell with the date along with the 4 columns x 3 rows next to it? Can't really see what is going wrong without a sample file to play with on something like this.

    If you select all of those as a group, then use the fill handle to pull down, the pattern should remain.

    Or you could keep 1 day blank as a template, drag the merged cell down to fill the dates in sequence, then use copy & paste for the other columns.

  3. #3
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    Sorry its really difficult to explain as im sure you know. Basically i record his stats each day, now im trying to formulate the strike rate between units staked. So firstly im inputing the data from day one so for example - Day one / 5 1u wins / 2 0.5u loses -> So on the strike rate sheet i've input the data for day one and two, now to save time i want to highlight both recorded dates and pull it down to auto fill in the rest of the month, ideally keeping the colour patterns the same as they help me if im looking through it.

    Now the problem is when i pull it down it changes 1u, 0.5u and 0.25u to 2u, 1u and 0.5u even know date one and two these figures are clearly not changing, and its also not following the pattern which ive manually input.

    Screen Shot 2018-08-17 at 21.23.43.png

    Screen Shot 2018-08-17 at 21.23.56.png

    So total bets is the total at the specified units, won is the amount that won and lost, yeah you get the picture. Now as im quite a way through i want to do it quicker as its a new feature and from what ive read simply highlighting and dragging and dropping should copy the colours and formulas.

    Hope this makes more sense
    Last edited by AliGW; 08-18-2018 at 09:19 AM.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    If you have formulas it will copy exact, if you have constants it can go wrong, there are settings to identify pattern type, but generally they don't work to well in the way that you need.

    Instead if entering 0.25 units enter ="0.25 units" do the same for the others, then drag down. Does that cure it?

  5. #5
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    It just comes up with #NAME?

    Yes i'd have thought it would also follow the pattern but for some reason it won't..
    Last edited by AliGW; 08-18-2018 at 09:18 AM.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    Shouldn't come up with name if you used the double quotes.

    Fill patterns work well as long as the values only either increase, or decrease within the range being dragged, not with a mixture. When you get alternating increasing and decreasing values it fails.

  7. #7
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    No the cells stay the same, the values within the cell change due to it being a daily report. Is there any way i can send you across the sheet?
    Last edited by AliGW; 08-18-2018 at 04:18 PM. Reason: Quotation removed.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Help copying a formula pattern and colour fill

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    You can attach a sample file to the thread, click the 'Go advanced' button, then scroll down and look for the link to 'Manage attachments' (paperclip icon doesn't work).

  10. #10
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    Says invalid file, maybe because i use a slightly different excel cause im on mac :/

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    The file types are the same for mac as they are for windows.

    Which file extension are you using?
    Last edited by jason.b75; 08-18-2018 at 04:47 PM.

  12. #12
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    I'm using software called Libreoffice, its the same I just prefer it to excel but systems/formulas etc are exactly the same.

    I'm struggling to explain it in a way most understanding.. It's just not doing what its suppose to its simple really.

    I just want to take data from 18 sheets and add them to one master sheet so i can identify the strike rate between certain odds.

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    Maybe that is why it is not filling down the same.

    I tried it using ="0.25 units", etc. With the coloured bands, dragged it down and it worked as expected.

  14. #14
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    Yes that worked, i must've put ' ' instead, now how can i get it to copy the formula pattern.

    The formula is like this

    Total bets
    0.25 units | =sum($'01.08.2018'.H7)
    0.50 units | =sum($'01.08.2018'.H8)
    1 uniits | =sum($'01.08.2018'.H9)

    Won
    0.25 units | =sum($'01.08.2018'.I7)
    0.50 units | =sum($'01.08.2018'.I8)
    1 uniits | =sum($'01.08.2018'.I9)

    Lost
    0.25 units | =sum($'01.08.2018'.J7)
    0.50 units | =sum($'01.08.2018'.J8)
    1 uniits | =sum($'01.08.2018'.J9)

    For the next date the sum is the same and the only thing that changes is the date to 02.08.2018

    Screen Shot 2018-08-19 at 00.39.44.png

    Now all i want it to do is copy the formula pattern so i can simply drag and drop the highlighted box and itll fit it out using the pattern for 03.08.2018, 04.08.2018 etc etc

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    Has a quick look at the libreoffice help / wiki site, looks like not all formulas are created equal. I have provided an Excel formula that I think is what you need based on the information provided.
    If there are differences between excel and libre formulas then you will need to make the changes. I do not have sufficiant information to write the formula in that format.

    From your description, I assume:-
    -That each date is a separate sheet / tab located within the same file.
    -That the date '01.08.2018' is located in a merged cell (A2:A4) on the formula sheet.
    -Your dates are actual valid dates formatted as dd.mm.yyyy and not text strings.
    -That first formula for 'total bets' & '0.25 units' going into C2. Your dates appear to be text, not formatted numbers.

    As this is an excel forum, your Excel formula will be something like this

    =INDIRECT("'"&TEXT(LOOKUP(1e+100,$A$2:$A2),"dd.mm.yyyy")&"'!R"&(7+(MOD(ROWS(C$2:C2)-1,3))&"C"&(7+COLUMNS($C2:C2)),0)

    You will need to change the ranges noted to match the location of your actual data, paying close attention to the positions of the $ prompts.
    $A$2:$A2 should refer to the first date as a single cell, where cells are merged it should only refer to the first of the cells that have been merged.
    C$2:C2 and $C2:C2 should refer to the cell holding the first formula before you fill the other rows / columns.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Help copying a formula pattern and colour fill

    Quote Originally Posted by Gladoo View Post
    I'm using software called Libreoffice, its the same I just prefer it to excel but systems/formulas etc are exactly the same.
    In the light of this admission, the thread has been moved to the section for other platforms.

  17. #17
    Registered User
    Join Date
    08-16-2018
    Location
    Derby, England
    MS-Off Ver
    16.00
    Posts
    19

    Re: Help copying a formula pattern and colour fill

    Oh god, i get a bit of that but a lot of that is new to me, sorry If im getting annoying Jason.

    Can you check this below.

    Screen Shot 2018-08-19 at 12.18.03.png

  18. #18
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Help copying a formula pattern and colour fill

    Let's try and clarify a few things first, the formula was based on my listed assumptions being correct. If they were, then the formula, adjusted to your ranges would be

    =INDIRECT("'"&TEXT(LOOKUP(1e+100,$A$11:$A11),"dd.mm.yyyy")&"'!R"&(7+(MOD(ROWS(C$11:C11)-1,3))&"C"&(7+COLUMNS($C11:C11)),0)

    Enter this one into C11 only, then fill from there. From what I could see on the libre information, I think that you might have to replace ! with . but not sure without having anything to test on.

    If any of my assumptions were wrong, then they need to be clarified before I can attempt a formula that might be closer to what you need.

    1. Are dates proper dates, or text strings? This applies to the dates in the sheet where the formula will bring the results, and the dates in the original source.
    A proper date will show the next day, or a number if you try the formula =A11+1 a text date will give an error.

    2. Using your sample formulas in post 14, are the dates in the formulas referring to sheets named "01.08.2018", "02.08.2018", etc. Or a list of dates in another sheet?
    If a list of dates in another sheet, where are they? Sheet name and cell references for the first 2 or 3 dates.

    There may be more that needs clarifying before this gets resolved, but that will get us started.

    If you can save the file in a format that the forum will accept, then that will help (.xlsx would be the common type, or xlsm if your file uses vba, or equivalent).

    If not, can you upload to a file share, dropbox or similar? Not sure if excel will open it if it is an unknown file type, but can try.

+ 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. Help copying a formula pattern and colour fill
    By Gladoo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2018, 01:31 PM
  2. [SOLVED] Using pattern to fill down values in excel (VBA or Formula?)
    By jjykim86 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2017, 01:11 PM
  3. [SOLVED] Drag fill not recognising formula pattern
    By steveneedshelp in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-12-2015, 09:06 AM
  4. [SOLVED] Copying a formula with a pattern
    By jaydotjaymill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2015, 04:20 PM
  5. To fill entire row with fill colour of a particular cell with a formula
    By shailendra chari in forum Hello..Introduce yourself
    Replies: 3
    Last Post: 11-30-2013, 11:18 AM
  6. [SOLVED] Copying a formula with that follows a pattern
    By Animosity in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2013, 12:19 PM
  7. copying formula pattern
    By marvinks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2007, 12:29 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