+ Reply to Thread
Results 1 to 10 of 10

Need a IF Formula for across Tabs, Can someone please help?

  1. #1
    Registered User
    Join Date
    11-14-2022
    Location
    East Coast, USA
    MS-Off Ver
    Office365
    Posts
    8

    Need a IF Formula for across Tabs, Can someone please help?

    In Short,
    Is there a command that can know if B2 through B10 (yes 9 boxes have to have text in them) on Tab2 has "text" or and "X" in it.. then Tab1, box "J14" can say, "Completed".



    =IF(ISTEXT('TAB2'!B2:B10), "X", IF(AND(ISTEXT('TAB2'!B2),ISTEXT(!B3)),"","X"))

    I'm not sure i know what i'm talking about here. Much help would be appreciated.
    To also clarify, if B2 through B10 has partial X's in it i still don't want J14 to have an X.
    So if B2, B3, B4, B5 all have text or X's. I don't want J14 to say anything Till ALL 9 rows have been completed. Is that done with OR's?? or more If's?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need a IF Formula for across Tabs, Can someone please help?

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need a IF Formula for across Tabs, Can someone please help?

    Forget it... it was easy to visualise:

    =IF(ROWS(FILTER('Tab2'!B2:B10,'Tab2'!B2:B10<>""))=9,"Complete","")
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-14-2022
    Location
    East Coast, USA
    MS-Off Ver
    Office365
    Posts
    8

    Re: Need a IF Formula for across Tabs, Can someone please help?

    wow thank you so much. I was just in the process of attaching a work book.. but yours is correct. !!! Thank you so much

    If I wanted to do this as a ROW across , would this change at all? B2 through J2 ??

    =IF(ROW(FILTER('Tab2'!B2:J2,'Tab2'!B2:J2<>""))=9,"Complete","") ??
    Last edited by Loominal; 11-14-2022 at 01:26 PM.

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

    Re: Need a IF Formula for across Tabs, Can someone please help?

    A couple of alternatives:

    =IF(COUNTIF('Tab2'!B2:B10,"<>")=9,"Completed","")

    or:

    =IF(COUNTA('Tab2'!B2:B10)=9,"Completed","")

    Hope this helps.

    Pete

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need a IF Formula for across Tabs, Can someone please help?

    You're welcome! It is ALWAYS easier if we have a sheet to play with. Words are frequently ambiguous.

  7. #7
    Registered User
    Join Date
    11-14-2022
    Location
    East Coast, USA
    MS-Off Ver
    Office365
    Posts
    8

    Re: Need a IF Formula for across Tabs, Can someone please help?

    agreed. I did edit my post prior, mind taking a look Glenn?

  8. #8
    Registered User
    Join Date
    11-14-2022
    Location
    East Coast, USA
    MS-Off Ver
    Office365
    Posts
    8

    Re: Need a IF Formula for across Tabs, Can someone please help?

    Quote Originally Posted by Pete_UK View Post
    A couple of alternatives:

    =IF(COUNTIF('Tab2'!B2:B10,"<>")=9,"Completed","")

    or:

    =IF(COUNTA('Tab2'!B2:B10)=9,"Completed","")

    Hope this helps.

    Pete
    Thanks Pete!! That is very helpful. Question though is "COUNTIF or COUNTA" only used for numbers?? or can I use "X" in those fields? It's basically checking off a box and then on the front page saying that item and all 9 steps are done.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Need a IF Formula for across Tabs, Can someone please help?

    One minor tweak:

    =IF(COLUMNS(FILTER('Tab2'!B2:J2,'Tab2'!B2:J2<>""))=9,"Complete","")

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

    Re: Need a IF Formula for across Tabs, Can someone please help?

    No, the COUNT function is only for numbers - COUNTA is for count-all (i.e. non-blanks) and the COUNTIF can also be used for both text and numbers as it uses the Text Comparison routine in Excel. Here's another:

    =IF(COUNTIF('Tab2'!B2:B10,"?*")=9,"Completed","")

    which uses the wildcard characters, in this case meaning at least one character ( ? ) and any number of other characters ( * ).

    Hope this helps, and thanks for the rep.

    Pete

+ 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. Calculating Sumifs Across Multiple Tabs; allowing Tabs to change or be added/deleted
    By Charles A. Othon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2019, 04:49 PM
  2. Formula to total across tabs when tabs aren't made yet?
    By Joolie567 in forum Excel General
    Replies: 3
    Last Post: 06-24-2016, 01:46 PM
  3. Macro help: Separating data into tabs and creating a table of content of those tabs
    By AntiPivotTable in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-15-2015, 11:57 AM
  4. Replies: 45
    Last Post: 03-12-2015, 12:46 PM
  5. [SOLVED] Userform with Multi-Tabs and Textboxes losing values when switching tabs
    By guitarsweety in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-23-2014, 11:35 AM
  6. Copy pie chart into new tabs, and show the results from data on those tabs
    By Sydney Lee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-23-2012, 07:50 PM
  7. Replies: 6
    Last Post: 02-01-2012, 05:29 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