+ Reply to Thread
Results 1 to 9 of 9

Functions to filter unclear data effectively

  1. #1
    Registered User
    Join Date
    07-07-2015
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    69

    Functions to filter unclear data effectively

    Hi guys,

    I currently have data that I extract and the extracted data is all over the place which doesn't help and I would like to make sense of it in a better way and plot on a graph. At the moment, I'm sorting it manually. Are there good functions and formula for me to sort the data out even if more data is added? I would like it to maybe look something like Sheet2. To make things worse, the refurbished & trial data is from the same location so I would like to formula to have an OR input as well. So IF refurbished OR trial then...

    Many thanks

    Mufeed
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Functions to filter unclear data effectively

    Try this in C4 of the Overall table:

    =SUMIFS(Sheet1!$C:$C,Sheet1!$B:$B,"*"&C$3&"*",Sheet1!$A:$A,">="&$B4,Sheet1!$A:$A,"<"&$B4+1)

    then copy across and down. I think you will need to split the column Trial/Refurbished into two separate columns of Trial and Refurbished. Also, you need to tidy up your data, as you have both M6 A and M6 Quad A, as well as M6 Quad C which is not the same as in your summary table.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-07-2015
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    69

    Re: Functions to filter unclear data effectively

    That's great. Works really well. Apart from having to separate the trial & refurbished. Is there an easier way to do this?

    Also currently I am manually typing in the dates into the 'overall' sheet. What function can I use to take the data from 'Sheet1' automatically. And how can I adjust the formula so that any data that does not exist is not returned as 0 and instead is a blank cell as the 0 shows up on graphs.

    Thanks.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Functions to filter unclear data effectively

    For that column only you could have two SUMIFS functions in the same formula - one looking for "*Trial*" and the other looking for "*Refurbished*", instead of the term "*"&C$3&"*".

    To avoid 0 showing up on graphs, you should return an error instead, and the basic approach would be:

    =IF( your_existing_formula = 0, NA(), your_existing_formula )

    In your table you would need to apply conditional formatting so that if a cell contained an error then you would use a white font on a white background, so that the cell would appear blank.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-07-2015
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    69

    Re: Functions to filter unclear data effectively

    Hi Pete,

    I have tried the formula as below for the two SUMIFS:

    =SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*"&Trial&"*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1)AND(SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*"&Refurbsished&"*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1). However it does not work

    I've also tried the error approach in replacing 0:

    =IF(SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*"&D$3&"*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1)=0,NA(),(SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*"&D$3&"*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A)))

    But it returns 'too few arguments for the function'.

    Please advise.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Functions to filter unclear data effectively

    You must have changed the file, as the column references are different. Assuming you have the correct columns, the first formula should be:

    =SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*Trial*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1) + (SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*Refurbished*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1)

    (changes in red).

    In the second formula you have used too many brackets and missed a bit off the end. Try it like this:

    =IF(SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*"&D$3&"*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1)=0,NA(),SUMIFS(Sheet1!$F:$F,Sheet1!$E:$E,"*"&D$3&"*",Sheet1!$A:$A,">="&$C4,Sheet1!$A:$A,"<"&$C4+1))

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    07-07-2015
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    69

    Re: Functions to filter unclear data effectively

    Thanks Pete. That now works a treat.

    Is there a function to look at the date column and pick out the individual dates instead of a manual input?


    Many thanks for your help this far.

    Regards,

    Mufeed

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Functions to filter unclear data effectively

    I'm going away for a few days tomorrow, so I'll have to leave this until I get back next week. Maybe someone else will chip in.

    Pete

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,659

    Re: Functions to filter unclear data effectively

    As to automatically placing the dates in column B of the table on the overall sheet.
    1) Select cell B4,
    2) Paste the following array entered formula* into the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3) *Simultaneously press the Ctrl, Shift and Enter keys,
    4) drag the fill handle to copy down.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 5
    Last Post: 02-15-2016, 09:33 PM
  2. Replies: 0
    Last Post: 04-26-2011, 11:38 PM
  3. Unclear Vlookup parameter
    By xxxploring in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2009, 03:52 AM
  4. Effectively listing data from a table/array
    By Drew Goldberg in forum Excel General
    Replies: 10
    Last Post: 05-30-2009, 02:06 PM
  5. tip of the day is unclear
    By 1a2s3d4f in forum Excel General
    Replies: 5
    Last Post: 11-20-2006, 04:28 PM
  6. [SOLVED] Unclear about hot to automate searchs
    By Keith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2006, 11:40 AM
  7. filter unique data using functions
    By vrijbergen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2005, 06:05 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