+ Reply to Thread
Results 1 to 5 of 5

Help with IF THEN formula across multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Angry Help with IF THEN formula across multiple sheets

    I have data in a column in my data sheet that I want to reference on several other sheets in the same workbook ONLY if it displays a certain character.
    For example -
    data sheet 1 cells are:
    Smith (H)
    Bob (Z)
    Doe (R)

    Sheet 2 needs to only display the cell if it has (H); sheet 3 only needs to display the cell if it has (Z); sheet 4 only needs to display if cell has (R).
    I have excel 2010.
    How the HECK do I write this formula? I know there's got to be a way to do it, I just have no idea how! I'm incredibly frustrated! Help!
    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help with IF THEN formula across multiple sheets

    Are you looking for something like this:

    =IF(RIGHT(A1;3)="(H)",A1;"") in Sheet 2; assuming your data in Sheet 1 starts in A1.

    Then just change the letter in the =IF() statement to fit the other sheets.

    Or have misunderstood something?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with IF THEN formula across multiple sheets

    The formula didn't work, unfortunately.
    It gave me a generic error message, and didn't refer back to the cell in sheet 1. Another suggestion?

  4. #4
    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,049

    Re: Help with IF THEN formula across multiple sheets

    it may be a punctuation error caused by different country formats? replace the ; with , and try again.

    also, are you looking for (H), H, Smith (H) or Smith?

    assuming your data is on sheet 1 A1:A3, and you want the answer on sheet2m A1, use...

    =IF(ISERROR(FIND("(H)",Sheet1!A1,1)),"",Sheet1!A1)
    adjust references as needed for other sheets.

    you could reference (H) instead if hard-coding it if you want, that will give you more flexibility in your search, in whic case with (H) in B1 on sheet2, the formula would change to...

    =IF(ISERROR(FIND(B1,Sheet1!A1,1)),"",Sheet1!A1)
    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

  5. #5
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help with IF THEN formula across multiple sheets

    Try uploading a workbook; makes everything easier.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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