+ Reply to Thread
Results 1 to 4 of 4

Problem with IF Function not giving right results.

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    21

    Problem with IF Function not giving right results.

    First time here, so I'll try to explain best I can.

    This is the formula I'm using: =UPPER(INDIRECT(IF("Sheet2!D"&ROUNDUP((ROW()-1)/47+2,1)=0,"Private Pay","Sheet2!D"&ROUNDUP((ROW()-1)/47+2,1))))

    My problem is I can't seem to figure out how to get this to give me a True result, no matter my efforts I keep getting False. The cell that it's referring to is blank, I've made sure of this. So either the =0 is wrong for a blank cell or something else is wrong. I'm trying to make a formula that I can copy and paste every 47 rows and I've succeeded in doing so, if I put values in the Reference cell it will show appropriately. I just can't get the True value right.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Problem with IF Function not giving right results.

    I think you have your Indirect and IF reversed (the Indirect should be inside the IF)
    And you need the indirect twice..

    Try

    =UPPER(IF(INDIRECT("Sheet2!D"&ROUNDUP((ROW()-1)/47+2,1))=0,"Private Pay",INDIRECT("Sheet2!D"&ROUNDUP((ROW()-1)/47+2,1))))

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    21

    Re: Problem with IF Function not giving right results.

    Thank you Jonmo1, that was exactly it. I've only been self teaching myself for a week now, so I knew I had to have something out of order or missing a small part. Thank you so much for your quick response!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Problem with IF Function not giving right results.

    You're welcome.

+ 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. vlookup giving #N/A results
    By Jazzzbo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-18-2014, 12:28 AM
  2. COUNTIF giving wrong results
    By Excel_vba in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2013, 04:17 PM
  3. Lookup or match function with multiple criteria giving different results
    By Mian USman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2013, 09:15 AM
  4. Replies: 1
    Last Post: 02-17-2013, 10:57 AM
  5. VLOOKUP not giving apt results....
    By lifeisaspreadsheet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-04-2012, 04:36 AM
  6. VBA in 2003 giving different results when run in 2007
    By pirukas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2012, 02:59 AM
  7. OR function not giving proper results
    By charliec in forum Excel General
    Replies: 3
    Last Post: 12-05-2010, 07:03 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