+ Reply to Thread
Results 1 to 20 of 20

Can excel automatically tweak formulas?

  1. #1
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Can excel automatically tweak formulas?

    Hi,

    Can someone please tell me if Excel has a function which can automatically tweak the same formula multiple times in an ascending order? in other words, can excel tweak the same formula which is in the same row but in multiple columns which are in multiple charts (see attached spread sheet), by each time tweaking one or two characters in the formula in an ascending order? For example (for some reason the system does not highlight in color the numbers I need tweaked each time. They are the two digits at the end part of the formula) - formula 1 in chart 1 would be =COUNTIFS($C$1:$C$19000, 0, $C$2:$C$19000, 0, $C$2:$C$19001, E3) , formula 2 in charts 2 would be =COUNTIFS($C$1:$C$19000, 0, $C$3:$C$19002, H3) , formula 3 in charts 3 would be =COUNTIFS($C$1:$C$19000, 0, $C$4:$C$19003, K3) , formula 4 in charts 4 would be =COUNTIFS($C$1:$C$19000, 0, $C$5:$C$19004, N3)

    I hope excel can do this, since to do it manually is mind numbing.

    Many thanks,

    JackBlack
    Attached Files Attached Files
    Last edited by AliGW; 02-04-2018 at 10:41 AM.

  2. #2
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Urgent - Can excel automatically tweak formulas?

    Your sample is basically empty, can you post something with formulas and charts in it and explain what part in the sample needs to update (by referring to exact cells, columns, rows, arguments in a formula)?

    There are many ways you may be able to accomplish what you want, knowing the best way would require us to know a bit about your layout and what you want to accomplish in more detail.

    You could for example combine INDIRECT with something like the ROW or COLUMN functions. All depends on what the goal is.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  3. #3
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Urgent - Can excel automatically tweak formulas?

    I have attached a spreadsheet with the exact formulas I need tweaked. As mentioned, I need to continue those charts up to chart 100 and each time I need to change two digits in the second part of the formula in the ascending order which I stated - 2, 19001 / 3, 19002 / 4, 19003 / 5, 19004 etc all the way up to 101, 19100
    Attached Files Attached Files
    Last edited by AliGW; 02-04-2018 at 10:45 AM.

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Urgent - Can excel automatically tweak formulas?

    If you just make them relative instead of objective range references, shouldn't they automatically change when you pull the functions down?



    Quote Originally Posted by jackblack2 View Post
    (this e-mail system you use sucks)
    Protip: insulting the board software is rarely going to make people want to help you for free, especially if you apparently don't understand the difference between "email" and "forum"
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  5. #5
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Urgent - Can excel automatically tweak formulas?

    The formulas change when I drag them down the same column. But how does one get them to change from column to column in the ascending order I stated, since one cannot drag a formula left or right. Surely Excel has a solution for this.

    Sorry for the complaint. I'm tired, which is why I forgot that I wasn't sending a mail but posting a message. I have commented before on the excellent help to be found on this forum.

    JackBlack

  6. #6
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Urgent - Can excel automatically tweak formulas?

    Quote Originally Posted by jackblack2 View Post
    since one cannot drag a formula left or right.
    Sure it can, You can fill formulas in any direction and columns and rows can be absolute or relative. You do so in the exact same way you fill down or up.

  7. #7
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Urgent - Can excel automatically tweak formulas?

    When you click on a cell, the + icon only allows you to drag down the same column and not in any other direction.

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Urgent - Can excel automatically tweak formulas?

    ...No, you can use it to pull-and-drag left, right, up, or down. (It can erase if you're pulling in towards the original cell, but it's pretty intuitive once you've used it a few times).

    Double-clicking it will dropfill, where it will fill down automatically along a column of data adjacent to it.

  9. #9
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Urgent - Can excel automatically tweak formulas?

    If you select a single cell you can fill in any direction.

    If you have multiple cells in a row selected you can only fill up/down.

    If you have multiple cells selected in a column you can only fill left/right.

  10. #10
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Urgent - Can excel automatically tweak formulas?

    I see what you mean. But unfortunately it still leaves me at square one, since I need to tweak the formula in the way I explained above and I also need to skip each time two cells in the process when dragging left (see attached file). Dragging just changes the target cell but not the range criteria

    Why when I try and highlight the exact characters I need tweaked, the system shows me text and does not highlight the characters even when clicking show preview?

  11. #11
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Urgent - Can excel automatically tweak formulas?

    @ben_hensel

    Unfortunately I am still at square one.

    I am going to highlight the changes I need done to the formula although I cant see if the numbers are highlighted even when I click "preview". Hopefully when I click post I will see that the numbers are highlighted.

    formula in chart 1 (see above the attached spreadsheet) would be =COUNTIFS($C$1:$C$19000, 0, $C$2:$C$19000, 0, $C$[COLOR=""]2[/COLOR]:$C$19001, E3) , formula in chart 2 would be =COUNTIFS($C$1:$C$19000, 0, $C$[COLOR=""]3[/COLOR]:$C$1900[COLOR=""]2[/COLOR], H3) , formula in chart 3 would be =COUNTIFS($C$1:$C$19000, 0, $C$[COLOR=""]4[/COLOR]:$C$1900[COLOR=""]3[/COLOR], K3) , formula in chart 4 would be =COUNTIFS($C$1:$C$19000, 0, $C$[COLOR=""]5[/COLOR]:$C$1900[COLOR=""]4[/COLOR], N3) and so on up to formula in chart 100 which would be =COUNTIFS($C$1:$C$19000, 0, $C$[COLOR=""]101[/COLOR]:$C$19[COLOR=""]100[/COLOR], ON3)

    Again, can u please tell me if there is a way to drag the formula left and in every third cell in the same row the formula will appear tweaked in the ascending order I highlighted above? This function I would imagine is a function many would need on Excel. I would recommend that Excel add this option into the "series" option within the "fill" function" in the "editing" bar. In other words, make it possible to continue a series of tweaked formulas in a certain direction.

    EDIT: I just saw that for some reason only one number is highlighted and the rest are sandwiched between the word COLOR making it hard to see what I need done. So I hope you can understand what it is I am referring to in the formulas

    Many thanks,

    JackBlack
    Last edited by jackblack2; 02-03-2018 at 02:31 PM.

  12. #12
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Urgent - Can excel automatically tweak formulas?

    You can use OFFSET combined with a COLUMN calculation to get the rows to increment as you go across columns.

    Put this in F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You can drag it down the column and the only thing which will change will be the E2 at the end (to E3, E4, etc).
    The Offset and Column bit gives $C$2:$C$19001.
    Copy it into I2 and it will give $C$3:$C$19002 as well as the E2 changing to H2.
    Note that this is reliant on your chart columns being 3 apart each time (that's the /3 after the column bit) - if you insert extra columns or delete columns in between, it'll fail.

    Hope that does what you want.
    Last edited by Aardigspook; 02-04-2018 at 10:17 AM.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  13. #13
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Urgent - Can excel automatically tweak formulas?

    @aardigspook

    Thanks for replying. I got a slap on the wrist from the forum moderator but at least I got a reply. Won't do it again.

    Unfortunately when I copy the formula into I2 the $C$3:$C$19002 part does not change, only the E2 to H2. And when I drag the formula down the chart and paste in the data to sort, the formula gives me the identical result in each cell as in the top cell in the chart. Also, when I drag the formula left with the + icon function, the formula gets copied into every cell in the row and not just every third cell in the row.

    Jackblack2.

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Can excel automatically tweak formulas?

    Try this formula in F2, then fill across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  15. #15
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Unhappy Re: Can excel automatically tweak formulas?

    Unfortunately I get the exact same result as the previous formula

  16. #16
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Can excel automatically tweak formulas?

    Put some numbers in so we can see the result that you are expecting.

    All you will get presently is zero.

  17. #17
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Urgent - Can excel automatically tweak formulas?

    Quote Originally Posted by jackblack2 View Post
    Unfortunately when I copy the formula into I2 the $C$3:$C$19002 part does not change, only the E2 to H2.
    The Offset-Column part of the formula won't change when you copy it, but the results it gives will.
    (COLUMN()-COLUMN($C1))/3 in column F gives (6-3)/3 which gives 1. In column I it gives (9-3)/3 which gives 2. So in column F, the offset from $C$1 is 1 row, giving $C$2, and in column I the offset is 2, giving $C$3 - which is what you want, I think?

    Quote Originally Posted by jackblack2 View Post
    And when I drag the formula down the chart and paste in the data to sort, the formula gives me the identical result in each cell as in the top cell in the chart.
    Without data in column C and in the purple-shaded cells it's difficult to troubleshoot this one - please give us some sample data as well - including the answers you expect to get.

    Quote Originally Posted by jackblack2 View Post
    Also, when I drag the formula left with the + icon function, the formula gets copied into every cell in the row and not just every third cell in the row.
    It won't work like this - you'll have to copy it from F3 to I3 to L3, etc. Dragging the formula across all the cells would overwrite your figures in H3, K3, etc. If you're happy to put the H3, K3, etc figures in later, then you can put the formula in F3, leave G3 and H3 blank, select F3:H3 then drag - that way Excel will repeat the 'formula - nothing - nothing - formula - nothing - nothing -' pattern as far as you drag it.

  18. #18
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Can excel automatically tweak formulas?

    @Aardigspook

    Brilliant! Everything works! Thanks an absolute fortune! You liberated me from mind numbing work. Can I suggest that you suggest to Excel engineers to incorporated this function into the "fill" function in the "editing" section of the task bar. I would imagine that many would need to tweak a formula multiple times in a fixed order.

  19. #19
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Can excel automatically tweak formulas?

    You're welcome. Thanks for the rep and for marking the thread as Solved.

  20. #20
    Registered User
    Join Date
    11-24-2017
    Location
    israel
    MS-Off Ver
    Excel Home and student 2019 for Windows 10
    Posts
    189

    Re: Can excel automatically tweak formulas?

    @Aardigspook

    You're welcome.

+ 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. URGENT PLEASE HELP - fORMULAS GONE
    By Shaun66 in forum Excel General
    Replies: 16
    Last Post: 02-13-2017, 03:51 PM
  2. Can I prevent Excel from automatically altering formulas?
    By Printer5040 in forum Excel General
    Replies: 7
    Last Post: 05-07-2008, 11:21 AM
  3. [SOLVED] Excel formulas are not automatically updating
    By Sam M. via OfficeKB.com in forum Excel General
    Replies: 3
    Last Post: 01-09-2006, 05:30 PM
  4. Help, Urgent Excel Formulas are not calculating
    By maashoff in forum Excel General
    Replies: 1
    Last Post: 05-02-2005, 08:06 PM
  5. Urgent help!! How to automatically resize all the charts? Thank you!
    By crossingmind in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2005, 12:06 PM
  6. Urgent help! how to automatically resize all the charts?
    By crossingmind in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2005, 12:06 PM
  7. Formulas - Please urgent
    By ramuis78 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2005, 06:50 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