+ Reply to Thread
Results 1 to 4 of 4

Adding an another IF(AND) isn't working

  1. #1
    Forum Contributor
    Join Date
    10-26-2013
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2013
    Posts
    248

    Adding an another IF(AND) isn't working

    Hi. I'm attaching my workbook if you could take a look. When mod(row(),2)=0,B38<>'' I want (LOOKUP(B38+16,$P$4:$P$11,$P$5:$P$12)-B38)/365 and when mod(row(),1)=1 and B38<>"" I want F37-(B38-B37)/365), at all the other options I want blank. I tried adding an another if(and(mod(row(),2)=1,b38<>"'),F37-(B38-B37)/365 to the following formula but it doesn't work.

    IF(AND(MOD(ROW(),2)=0,B38<>""),(LOOKUP(B38+16,$P$4:$P$11,$P$5:$P$12)-B38)/365,F37-(B38-B37)/365)

    Thanks for any help!



    RSX DATA28.xlsm
    Last edited by tsakta13ole; 05-23-2015 at 05:44 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Adding an another IF(AND) isn't working

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding an another IF(AND) isn't working

    I think that this might be what you are looking for:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You have mod(row(),1)=1 this doesn't return a value of 1. It will always return 0. I made the assumption that you meant IF(MOD(ROW(),2)=1 was what you meant.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Contributor
    Join Date
    10-26-2013
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2013
    Posts
    248

    Re: Adding an another IF(AND) isn't working

    Thanks to both! Both work.

+ 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. [SOLVED] Adding two cells not working
    By DEER30 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2014, 07:14 PM
  2. Adding working hours
    By sreerag446 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-20-2013, 04:00 AM
  3. Formula for adding a % not working
    By Chemline in forum Excel General
    Replies: 3
    Last Post: 07-12-2011, 10:16 AM
  4. Adding HH:MM:SS not working
    By nmss18 in forum Excel General
    Replies: 6
    Last Post: 02-18-2009, 01:53 PM
  5. Working with and adding Menus?
    By AJ Master in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2005, 05:05 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