+ Reply to Thread
Results 1 to 5 of 5

Nested If function across several worksheets

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Nested If function across several worksheets

    Hello all,

    I've ran into a problem trying to use a nested if function (something I'm not very familiar with) to produce a specific number (I basically want to look at all the high temperatures in 3 worksheets of the workbook and return that city's name within the cell), I have it mainly working except that it returns the same city result no matter what. Wondering if there was any insight or tips that would help me figure out the problem I am having (If I'm just using the wrong if function, have it structured wrong, etc). The current formula I have is
    Please Login or Register  to view this content.
    Like I said it just returns OKC no matter what and I want it to return the others if that high temperature matches.

    Thank you

  2. #2
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Nested If function across several worksheets

    Hi,

    Try this , I assumed your data as below

    E F
    Temp City
    16 25 A
    17 26 B
    18 27 C
    19 45 D
    20 29 E
    21 28 F

    INDEX(F16:F21,MATCH(MAX(E16:E21),E16:E21,0))

  3. #3
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Nested If function across several worksheets

    Thank you for the reply
    That is similar to how I have the data, I just have a date before the high and low temps along with 3 cities with up to a month of temperature data and a summary sheet (Where I'm having the issue) I want to put the name of the high temperature city next to the date in which the data occurred IE 7/1 has high temps of 76 96 78, I want it to pull the 96 from the 2nd sheet and insert that city's name in the cell, I see you used an index and match function for the sample data, will that in effect work for what I require it to do or do I need a different kind of if function?

  4. #4
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Nested If function across several worksheets

    I believe I need to format the index and match function with if statements as I've been browsing around looking for examples, I'm just unsure on how to do this unfortunately, like I said it needs to read the input in let's just say it's in Cell F10 for example sake (which has the high temp from all 3 cities in a 3-d sum function) and output the city name in the Cell next to it, which would be G10)

  5. #5
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Nested If function across several worksheets

    Figured it out, I was over complicating matters with the nested if function, but I figured it out through trial and error for the most part.

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  3. Index and Nested IF's across several worksheets
    By Shredstick in forum Excel General
    Replies: 5
    Last Post: 03-18-2014, 11:12 AM
  4. Nested if statements involving 2 worksheets
    By preferiti in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-10-2013, 08:44 PM
  5. Nested loop test across two worksheets
    By dems in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2010, 09:32 PM
  6. Nested if and Vlookup function problem - multiple worksheets
    By Mariesmi80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2008, 03:39 PM
  7. [SOLVED] Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 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