+ Reply to Thread
Results 1 to 7 of 7

amending existing formula to return blank when there is no data

  1. #1
    Registered User
    Join Date
    06-28-2017
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    13

    amending existing formula to return blank when there is no data

    Hi

    for the below formula i would like it to return an empty cell instead of "TRUE" when both of the data cells in sheet1 & sheet2 are empty

    =INDEX(Sheet1!G:G,ROW(G2))=INDEX(Sheet2!G:G,ROW(G2))

    Thanks

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: amending existing formula to return blank when there is no data

    But if value is false what result you expect ???
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    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
    52,933

    Re: amending existing formula to return blank when there is no data

    A bit messy but...
    =if(and(INDEX(Sheet1!G:G,ROW(G2))="",INDEX(Sheet2!G:G,ROW(G2)=""),"",INDEX(Sheet1!G:G,ROW(G2))=INDEX(Sheet2!G:G,ROW(G2)))
    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

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: amending existing formula to return blank when there is no data

    Use If() function with And() combination

    =IF(AND(INDEX(Sheet1!G:G,ROW(G2))="",INDEX(Sheet2!G:G,ROW(G2))=""),"",INDEX(Sheet1!G:G,ROW(G2))=INDEX(Sheet2!G:G,ROW(G2)))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: amending existing formula to return blank when there is no data

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


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: amending existing formula to return blank when there is no data

    or Try

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

  7. #7
    Registered User
    Join Date
    06-28-2017
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    13

    Re: amending existing formula to return blank when there is no data

    Thanks Ford that works perfectly

    I have also just posted the same issue for a different formula if you are able to help that would be great

    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. [SOLVED] add if blank cell then return "" to existing formula
    By cristylk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2017, 09:58 AM
  2. [SOLVED] Get existing Formula to return blank instead of 0 please
    By fruit&veg in forum Excel General
    Replies: 4
    Last Post: 01-22-2016, 07:53 AM
  3. Adding an additional IF function to my existing formula to return a blank
    By xmann21 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2015, 09:52 AM
  4. [SOLVED] Amending Existing Code for Extracting Information from Outlook Folder
    By XOR LX in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2014, 10:32 AM
  5. [SOLVED] Amending existing macro (removing restrictions)
    By index9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2013, 01:47 AM
  6. Help amending existing marco for a criteria search on a database
    By howardjo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2008, 07:01 AM
  7. [SOLVED] Amending an existing function
    By Paydog4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2006, 11:55 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