+ Reply to Thread
Results 1 to 9 of 9

Need Help with Indirect Formula (not empty cell value)

Hybrid View

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    48

    Need Help with Indirect Formula (not empty cell value)

    I have one workbook name TA-CG in which I have two worksheet i.e. summary and auto centre. I know the formula to bring out the last non empty cell value in sheet but I have no idea how to bring last non empty cell value in currrent sheet but associated with other column in other sheet.

    =LOOKUP(2,1/(B:B<>""),E:E)
    =LOOKUP(2,1/(1-ISBLANK(B:B)),C:C)

    above formulas are the one who bring out last non empty cell value is same sheet.

    In summary sheet I want bring the last date of last do number (DORAI051942 20-Apr-17) associated with last do number positioned in Auto Centre Sheet. Can anyone help me out with that with the help of indirect formula.



    Regards,

    Sachin
    Attached Files Attached Files
    Last edited by daga.sachin120887; 04-13-2017 at 12:16 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need Help with Indirect Formula (not empty cell value)

    Is this what you are asking for?

    =LOOKUP(2,1/('AUTO CENTRE'!C:C<>""),'AUTO CENTRE'!D:D)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-25-2012
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Need Help with Indirect Formula (not empty cell value)

    Dear ChemistB,

    You output is right but what if have 100 sheet lying in that workbook. So I cannot apply your lookup function for every dealer name sheets for 100 different sheet in summary sheet. Can you help me with indirect function adjusted with lookup function that can take sheet name from different dealer sheets because someone told me indirect function take cell reference based on sheet name.

    Regards,
    Sachin

  4. #4
    Registered User
    Join Date
    03-25-2012
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Need Help with Indirect Formula (not empty cell value)

    Dear ChemistB,

    Tell me why below formula 2 is not working based on your formula 1?


    Formula 1 in same sheet =LOOKUP(2,1/('AUTO CENTRE'!C:C<>""),'AUTO CENTRE'!D:D)


    Formula 2 in same sheet but for other sheet last non empty cell (date associated with do number)

    =LOOKUP(2,1/"("&INDIRECT("'"&C2&"'"&"!"&"c:c"&"<>"&")",INDIRECT("'"&C2&"'"&"!"&"d:d")))


    Regards,

    Sachin

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Need Help with Indirect Formula (not empty cell value)

    Maybe this?
    =LOOKUP(2,1/(INDIRECT("'"&C2&"'!c:c"<>),INDIRECT("'"&C2&"'!d:d")))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    03-25-2012
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Need Help with Indirect Formula (not empty cell value)

    Dear FDibbins,

    But this is not working... is is showing the message "the formuala you typed contain a error"

    Sachin-

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need Help with Indirect Formula (not empty cell value)

    Some minor corrections to Ford's formula

    =LOOKUP(2,1/(INDIRECT("'"& C2 & "'!c:c" ) <> ""),INDIRECT("'" & C2 & "'!d:d"))

  8. #8
    Registered User
    Join Date
    03-25-2012
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Need Help with Indirect Formula (not empty cell value)

    Thanks to all but specially to ChemistB. You made it possible now. the formula work perfectly now.

    Just one thing I want to know in your formula because I want to understand the formula to.

    =LOOKUP(2,1/(INDIRECT("'"& C2 & "'!c:c" ) <> ""),INDIRECT("'" & C2 & "'!d:d"))

    why the double inverted commas in red colour appear in your formula.


    Regards,

    Sachin

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need Help with Indirect Formula (not empty cell value)

    Those represent the null set or empty set. that portion of the formula is stating that the value in C must be less than or greater than the null set. In other words, it must have a value.

+ 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. indirect a formula off another cell
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 05-06-2015, 08:44 PM
  2. [SOLVED] Paste formula to the last empty cell based on a non-empty cell on another column
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2015, 04:07 PM
  3. [SOLVED] IF cell empty AND cell not empty then Put Formula in empty
    By taregt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2014, 01:46 PM
  4. INDIRECT for cell that contains formula?
    By Dahlia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-27-2014, 02:56 AM
  5. Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 08:42 AM
  6. Replies: 4
    Last Post: 06-24-2010, 11:13 AM
  7. Indirect Row & cell formula
    By George Andrews in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-24-2005, 06:06 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