+ Reply to Thread
Results 1 to 10 of 10

If then

  1. #1
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2003
    Posts
    6

    If then

    Hello there,

    I am trying to have the following to work but I am not sure as I am getting 35 all the time regardless what the value of the cell is.ie.David, Joe, Sam, Jack. Also Cell C3 = 35%

    Please Login or Register  to view this content.
    Thanks in advance.

    E-

  2. #2
    Registered User
    Join Date
    04-16-2014
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: If then

    "Producers"?????

    try giving cell reference instead of producer. e.g. A1

  3. #3
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: If then

    "Producers" is a name range for ='Sheet'!$DY$4:$DY$9

  4. #4
    Registered User
    Join Date
    04-16-2014
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: If then

    Logical test in IF function tests value in a cell not in a range as you mentioned in your formula that is why is giving the answer for "value if false" all the time.

  5. #5
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: If then

    Any suggestions?

  6. #6
    Registered User
    Join Date
    04-16-2014
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: If then

    Can you share sample work-sheet and then let me know your desired result?

  7. #7
    Registered User
    Join Date
    04-16-2014
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: If then

    May be "AND" formula work for you. put AND test for logical test in IF function.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: If then

    Try this to pull out the totals...
    =SUMPRODUCT(($B$2:$B$9)*($A$2:$A$9={"aa","bb"}))

    I used the following table...
    A
    B
    2
    aa
    1
    3
    bb
    2
    4
    dd
    3
    5
    cc
    4
    6
    ee
    5
    7
    aa
    6
    8
    bb
    7
    9
    dd
    8


    You can adjust/expand the {"aa","bb"} part as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    06-25-2013
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: If then

    Quote Originally Posted by enetworks View Post
    "Producers" is a name range for ='Sheet'!$DY$4:$DY$9
    Producers may be a named range. "Producers" is a string literal which would equal "Producers"

  10. #10
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: If then

    it is unclear what you want.

    try:

    Please Login or Register  to view this content.
    and see if the result is as desired. if not, try with AND instead of OR. if still not satisfied, attached a sample spreadsheet with expected results indicated.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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