+ Reply to Thread
Results 1 to 43 of 43

Dynamic formula, (copy from dynamic formula and ignore 0)

  1. #1
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Dynamic formula, (copy from dynamic formula and ignore 0)

    1. i have an dynamic list that grows.

    2. im trying to make a formular that will follow the growth of the first list, the funktion of this formula is to copy the first list but ignore zeros/empty cells


    List 1:

    Somthing 1: Somthing 2
    Jan: 2
    feb: 4
    april: 0
    Dec: 3
    Mar: 1

    What i want my formula to do:

    Somthing 1: Somthing 2
    Jan: 2
    feb: 4
    Dec: 3
    Mar: 1
    Last edited by Kartoffelmos; 10-21-2014 at 04:08 AM.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    plz provide sample workbook with output
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hi,

    See the attached file, the list is converted to table so that it can take future addition and be dynamic. Column E & F has formula solution.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hi,

    Updated file with +Index +array+ Vlookup

    Punnam
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Thanks for the fast reply guys, @Misrasomendra can you pls convert the file to excel 2003 forgot to mention im sitting on an old version.

    A sheet for NAveed Raza
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hey Punnam can you update the file in excel 2003? thanks

  7. #7
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Can you explain the date in Column A will be copied whole. and yellow cells based on filled or not?

  8. #8
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    The dates should only be copyed if there is a value in the coulored.

    The idea is im trying to create a graph, but i am struggeling so im trying several solutions.

    my goal is: Graph for coloum A+B, Graph for column A+C.

    The graph should only show the Valued numbers of "B", in this case 15, <10, <10, <10
    im not interested in the dates where the column is empty, and i want to be able to look at last X tests,

    i can post another version where i have applyed several things, such as look at last x months, (i dont want months i want testresults).

  9. #9
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    so far i thought if i copyed the "valued cells" i could make a way around the problem when creating the graph

  10. #10
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    So this will create 12X2 columns for each data. Than the graph should be individual or in same?
    Than how are thinking of plotting <10 on a graph.as rest are numbers?

  11. #11
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Please ignore <10 part of my last comment, it is CF. Please answer remaining part.

  12. #12
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    yeah i want to create a new sheet where the graphs are posted, (check the oploaded file)

    and the sheet is individual, (12 graphs on that sheet), you can see on the sheet i oploaded that i can change the number of months,
    unfortunetly i want to change the number of "tests" the months are irrelevant but the tests are what i want to get a fast overview of.

    the <10, if you look at the first page you will notice i type 9,9 and it is displayed as <10 this is not somthing of importance,
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    i uploaded a wrong version, (the dates are numbered meaning i get a horrible x-axis scaling)

    This version shows the pylons on top of the date
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    See the attached file, I had tried to build as per 2003. I had extracted two set of data and draw the graph of 1 set, with dynamic named range.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    AAAAAAAAmazing

  16. #16
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    THis is definetly way more useful than what i made so far, one last thing (big last). Is there a way to edit it so i can change the range?

    as you can see in some colomns i have many "tests" and the year of which some have been taken is 2009, if i just want to look at the last 3 tests or 5? is there a way to make this selectable?

  17. #17
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Give me some time to work over this.

  18. #18
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    I am very thankful! i have been baning my head trying to solve this what you gave me allready is worth ALOT, now i can actually use it, instead of it being nonsense. thanks so much

  19. #19
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    i dont know if you have seen my last uploaded file, but in it i found a way to select according to months. but that dident make sence since i had so many "empty" ones. dont know if that is any help

  20. #20
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    hi,

    is this what you are trying to achieve

    Punnam
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hey Punnam, not quite.

    Misrasomendra uploaded a file (the last one he uploaded) it shows what i want to do, the only problem i have now is that, in some cases Colonnes (B to M) are the tests made at variouos dates, if you look at the dates you can see they span over a very long time, (2009 till now), and some are considered "old", if i want to look at the last 3 tests made what do i have to do. or the last X tests.

  22. #22
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    See the file, done for one graph.
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Thanks so much

    Okay i know this is a long stretch, can you explain how you did it? i need to implement this to the "real document"

    And im trying to understand your method but cant see how you did it

  24. #24
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    And again thanks ALOT this is incredible

  25. #25
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Thanks for the feedback. You are Welcome.

  26. #26
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    So here what I Did:
    1. Step 1) Extracted data to pull data which is non blank both for date and value for each series.
    2. Step 2) Created dynamic ranges for X & Y axis with OFFSET function named as Range (Y-Axis) and Xaxis for graph. (The same can be accessed through name manager)
    3. Step 3) Insert a blank graph. Go to select data, add a new series, in values give the refrence oy Yaxis with sheet name e.g. Sheet1!Range. The change the horizontal axis to Sheet1!Xaxis.
    4. Step 4) That's it.

  27. #27
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    did you use my defiened names? to create the "selectable tests" ?

    so i can change number of tests (Last X) or can i delete them (the defined names)

  28. #28
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    No I did mine :
    For X-Axis :XAxis1
    For Y-Axis: YAxis1

    Later for other you can use 2,3, and so on so that you can relate easily.

  29. #29
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    okay, thanks i will try to implement this so il need a couple of hours, lol not anything near as fast as you.

  30. #30
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Gr8, write back if you need any explanation on this. If you assume this is solved than mark the thread as SOLVED.

  31. #31
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hey Misrasomendra, im having a bit trouble, (Step 1).

    Im trying to fill all of the data into the cells for all the tests first but:

    when i change your formula the cell apears blank. and if i try to drag it it is not correctly modified.

    your formula to copy is so long im having trouble understanding each "part"

  32. #32
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    The formula are array formula and must entered through Ctrl+Shift+Enter not just enter. If executed successfully than you can see {} around formula in formula bar.

  33. #33
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Thanks, that worked jesus crist there is so much to this excel that i dont understand.

  34. #34
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hey again,

    when i have completed step 1 for all the tests, i am haveing a bit of a problem with creating a new graph, i created Xaxis2, and Yaxis2, im not sure of they are correct, but when i try to create a new graph it says somthing about refrences. (do the names i have made also funktion dynamically (Xaxis2/Yaxis2)?

  35. #35
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Copy the formula of Xaxis1/Yaxis1 to sheet cell and adjust accordingly for 2nd graph.

  36. #36
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    yeah thats what i tried, but im not completly sure if im doing it correctly
    Attached Files Attached Files

  37. #37
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    IN A2, and B2 you can see the formula for Xaxis2/Yaxis2

    i placed it there so i had easy edditing then copy it into the "define name"

  38. #38
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    See the file, I had editted the formula for XAxis2/Yaxis2 in name manager.
    Attached Files Attached Files

  39. #39
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Hmm, what was my mistake? i cant figure out what you did differently

  40. #40
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    You were selecting E2:E5 in row and height component I selected upto 25.

  41. #41
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    okay, so for future reference lets say i sometime in the future pass 25, this wont be changed dynamically right? so i could put it to 400 or 4k etc to be sure that i dont run past the definition

  42. #42
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    Yes, put in a number which you expect to be the largest number will be.

  43. #43
    Registered User
    Join Date
    05-25-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Dynamic formula, (copy from dynamic formula and ignore 0)

    okay thanks Misrasomendra, i am going off now so il check back on this tomorow, thanks for the help you realy been a gentleman, i hope i can figure the rest out on my own, and i think you just solved 3 of my threads with this help, i will [Solved] them tomorrow, and give you rep in every one of them. thanks!

+ 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. dynamic range formula to ignore #DIV/0 error
    By jmfrancis21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2013, 03:18 PM
  2. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  3. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  4. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  5. Replies: 2
    Last Post: 02-02-2006, 04:10 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