+ Reply to Thread
Results 1 to 14 of 14

how conditions allowed in IF statement

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    how conditions allowed in IF statement

    Dear Freinds
    I have 12 conditions to get result. immediate aid will be appreciated.

    roofi
    Abdul Rouf Roofi

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,697

    Re: how conditions allowed in IF statement

    sometimes you can use a lookup statement to get results which will reduce the number of IF statements needed. Sometimes a reference table and a vlookup will also work. Without more specifics it is impossible to give you better advice.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how conditions allowed in IF statement

    please see file
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how many conditions allowed in IF statement

    please see attached file
    Attached Files Attached Files

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how conditions allowed in IF statement

    Perhaps

    Formula: copy to clipboard
    =INDEX($C$2:$N$2,MATCH(TEXT(MONTH(TODAY()),"mmm"),$C$1:$N$1,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how conditions allowed in IF statement

    Hi Fotis
    thats great!
    your suggestion encouraged me to extend my question please review my new sheet now.

    regards
    roofi
    Attached Files Attached Files

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how conditions allowed in IF statement

    I am not able to see anything new to your sheet. What's the new question?

  8. #8
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how conditions allowed in IF statement

    If Month is = D9
    what will be the formulae

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how conditions allowed in IF statement

    Do i miss something? D9 has no value. It's an empty cell!!

  10. #10
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how conditions allowed in IF statement

    sorry for inconvenience
    please see now
    Attached Files Attached Files

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how conditions allowed in IF statement

    Formula: copy to clipboard
    =index($c$2:$n$2,match(d9,$c$1:$n$1,0))

  12. #12
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how conditions allowed in IF statement

    Great it solved the issue
    thanx


    Dear Fotis
    one more question
    same situation if condition of the same is true i need total from Jul to current month
    for example
    if D9 = Aug

    i need total from Jul to Aug

    please
    Last edited by roofi; 06-11-2015 at 09:01 AM.

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: how conditions allowed in IF statement

    Using a helper & hidden row.

    Formula: copy to clipboard
    =IF(C2=$D$10m1mIF(D1=1m1m""))


    Then

    Formula: copy to clipboard
    =SUMIF(C1:N2,1,C3:N3)
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how conditions allowed in IF statement

    dear Fotis
    Thats nice!
    its working well as desired.
    one more question please
    please see attached sheet again
    regards
    roofi
    Attached Files Attached Files

+ 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. TOo Many Nested Allowed in IF statement
    By britneycook in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2014, 11:28 AM
  2. Using if statement with two conditions
    By fionn_ in forum Excel General
    Replies: 5
    Last Post: 07-03-2012, 09:43 AM
  3. Formula Array Max IF conditions with difference allowed
    By rafa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-30-2011, 09:28 AM
  4. How many levels of an IF statement is allowed within a Nested IF?
    By Rick in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2006, 11:10 AM
  5. [SOLVED] why can i use 3 conditions in SQL statement only?
    By Tarek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 03: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