+ Reply to Thread
Results 1 to 3 of 3

IF(AND) Function for tables not working.

  1. #1
    Registered User
    Join Date
    05-08-2017
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    81

    Question IF(AND) Function for tables not working.

    Hi,

    So, in practicing an Excel lab exercise, I'm having trouble getting the IF(AND() function to work but for the life of me, it just won't go through. I was able to run the IF function alright, but AND is being fussy.

    My IF function was: =IF(Table1[[#This Row],[Customer Age]]<25,"Youth") . This works fine.

    I have tried the following for IF(AND(), but keep getting an error: =IF(AND(Table1[[#Headers],[Customer Age]]>=25,Table1[[#This Row],[Customer Age]]=<34,"Young Adult"))

    Here is the attached file if it helps (I had to upload it on box.com since it was around 10 mb): https://app.box.com/s/3torrmjyuesc6p80wc7pcnpmckbrrq7y

    Any help would be appreciated. Excel version is 2007.

    Thanks!
    Last edited by noname91; 05-09-2017 at 09:19 PM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: IF(AND) Function for tables not working.

    Welcome to the forum

    I have not downloaded your file but this formula works fine for me. see cell C2 in attached file

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    05-08-2017
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    81

    Re: IF(AND) Function for tables not working.

    Hello and thank you, kev_!

    Your solution works great. I see the AND queries have IFs between them as well and this is why my original formula was not working. Thanks for clearing this up!

+ 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. Working with tables in powerpivot
    By stephme55 in forum Excel General
    Replies: 7
    Last Post: 07-11-2016, 01:47 PM
  2. VB to add values to Pivot Tables not working.
    By cantona_lives in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2015, 04:00 AM
  3. Working with Pivot Tables
    By kats9137 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-10-2011, 11:14 AM
  4. problem working with excel tables
    By normality in forum Excel General
    Replies: 5
    Last Post: 10-17-2011, 08:19 AM
  5. Working with Pivot tables with % change
    By Charlie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2006, 11:25 AM
  6. Working with Pivot Tables
    By M.Siler in forum Excel General
    Replies: 2
    Last Post: 06-27-2005, 10:05 AM
  7. [SOLVED] Working with Pivot Tables
    By M.Siler in forum Excel General
    Replies: 2
    Last Post: 06-27-2005, 10:05 AM

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