+ Reply to Thread
Results 1 to 7 of 7

Pulling "MIN" Data From Another Sheet (Error Detection)

  1. #1
    Registered User
    Join Date
    05-13-2022
    Location
    Florida, USA
    MS-Off Ver
    365
    Posts
    12

    Question Pulling "MIN" Data From Another Sheet (Error Detection)

    This community is always so helpful, hoping you can pull another one off for me

    I have attached the workbook with the goal of pulling information from the sheet "CallTek" into the "Daily Tickets Report" sheet cell D6. Currently I am using the following function: =(CallTek!P2)

    This works only if I presort the data on the sheet "CallTek" so that the oldest ticket date is first in cell. The problem is if the reference cell is null than it displays "0" when I want it to display "N/A"

    Someone on this site provided a function that works in the other rows in column D - only if they are in a date form like #/#/## however if the reference cell says "# days ago" it breaks the function. This function provided was: =IF(COUNT(SheetName!M:M)=0,"N/A",MIN(SheetName!M:M))

    Goal: Display "# of days ago" or "N/A" if reference cell is null -AND- if possible pull the oldest value such as "2-months ago" over "2-days ago"
    Attached Files Attached Files
    Last edited by PinkFloydEffect; 05-27-2022 at 05:15 PM.

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Pulling "MIN" Data From Another Sheet (Error Detection)

    I'm not sure what you want, but you may try LOOKUP function

    =LOOKUP(2,1/(CallTek!$J:$J=G6),CallTek!D:D)

    Regards.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-13-2022
    Location
    Florida, USA
    MS-Off Ver
    365
    Posts
    12

    Re: Pulling "MIN" Data From Another Sheet (Error Detection)

    Quote Originally Posted by menem View Post
    I'm not sure what you want, but you may try LOOKUP function

    =LOOKUP(2,1/(CallTek!$J:$J=G6),CallTek!D:D)

    Regards.
    This does appear to work, however I do not want the hash symbol before the N/A so maybe it would require an additional argument to display a string when #N/A is returned?

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: Pulling "MIN" Data From Another Sheet (Error Detection)

    No #N/A is returned

    How about this

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

  5. #5
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Pulling "MIN" Data From Another Sheet (Error Detection)

    If you don't want # sign before #N/A

    please try

    =IF(ISNA(LOOKUP(2,1/(CallTek!$J:$J=G6),CallTek!D:D)),"N/A",LOOKUP(2,1/(CallTek!$J:$J=G6),CallTek!D:D))
    above formula will show N/A when it get #N/A error, if any others error occured it will show that error value.

    or

    =IFError(LOOKUP(2,1/(CallTek!$J:$J=G6),CallTek!D:D),"N/A")
    above formula will show N/A every time it get error

    Regards.

  6. #6
    Registered User
    Join Date
    05-13-2022
    Location
    Florida, USA
    MS-Off Ver
    365
    Posts
    12

    Re: Pulling "MIN" Data From Another Sheet (Error Detection)

    Another user (JeteMc) ended up providing a solution for both the N/A and the date format which works!

    =IF(B7=0,"N/A",TODAY()-LEFT(CallTek!Z2,SEARCH(" ",CallTek!Z2)))
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Pulling "MIN" Data From Another Sheet (Error Detection)

    Completed all answer.
    Please verify.

    D2
    =AGGREGATE(15,6,FreshDesk!$C:$C/(1/(FreshDesk!$B$1:$B$1000="Open")),1)

    D6
    =IF(I6=TODAY(),"N/A",I6)
    need helper cells. I6
    =TODAY()-IFERROR(AGGREGATE(14,6,VALUE(LEFT(CallTek!$D$1:$D$1000,FIND(" d",CallTek!$D$1:$D$1000)))/(1/(CallTek!$J$1:$J$1000=$H6)),1),0)

    D14
    =IFERROR(INDEX(Kentrone!$G:$G,MATCH($H14,Kentrone!$J:$J,0)),"N/A")

    D21
    =IFERROR(AGGREGATE(15,6,VALUE(LEFT(CRM!$F$1:$F$1000,FIND(",",CRM!$F$1:$F$1000)-1))/(1/(CRM!$D$1:$D$1000=$A21)),1),"")

    Regards.

    Note : I've limited data area only row 1 to 1000 for speed up of calculation.
    Attached Files Attached Files

+ 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. "Error" or "Disallow" Entries If Data Entered in Wrong Cell
    By sage.tx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2017, 12:20 PM
  2. Replies: 35
    Last Post: 01-13-2016, 02:16 AM
  3. Script not copying data from "Emails" sheet to "New Sheet" - Run time error: Object
    By methuselah90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2014, 03:22 PM
  4. Replies: 3
    Last Post: 05-31-2013, 05:16 AM
  5. [SOLVED] Is there a way to change the error "div/0" in data table to "--" using cond. formatting?
    By Snowpear in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-04-2012, 01:05 PM
  6. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  7. Replies: 10
    Last Post: 03-11-2010, 05:03 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