+ Reply to Thread
Results 1 to 6 of 6

IF multiple cells = then -1

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    UK - East Coast
    MS-Off Ver
    Excel 2010
    Posts
    20

    IF multiple cells = then -1

    Hi

    I'm looking for a little help please. I'm in the throws of putting a basic sheet together and would like to be pointed in the right direction.

    excel.jpg

    What I am trying to do is use the IF function to check cell B4 to see if "y" has been entered and if so, check the value in cell F4 (a hidden "14"), then subtract "-1" from that figure and return the result in the formula's cell of F10. A countdown if you like.

    This is the formula I used:
    Please Login or Register  to view this content.
    This works great, however I want to be able to check multiple cells for "y" and reduce the result by 1 for each instance. This I cannot work out and I'm sure i'm going able it in the wrong way, I have tried the following. But that results in to many arguments error:
    Please Login or Register  to view this content.
    Thank you for any help given. I have attached a picture, hopefully that will show.
    Always needs more sleep.. zzZZ

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    4,332

    Re: IF multiple cells = then -1

    you can try something like this

    =F4-countif(B4:B16,"Y")

    tell me if this works for you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    08-27-2013
    Location
    UK - East Coast
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: IF multiple cells = then -1

    Thank you for the reply vlady.

    Your formula works great, however is there a was to include the opporsite cell range of H4:H16?

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    4,332

    Re: IF multiple cells = then -1

    create two countif then get sum like this
    =F4-(COUNTIF(B4:B16,"Y")+COUNTIF(H4:H16,"Y"))
    or
    =F4-sum(COUNTIF(B4:B16,"Y"),COUNTIF(H4:H16,"Y"))

    or refer the range until H column

    =F4-COUNTIF(B4:H16,"Y")

  5. #5
    Registered User
    Join Date
    08-27-2013
    Location
    UK - East Coast
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: IF multiple cells = then -1

    I was just a minute behind you vlady, I found this works perfectly:

    Please Login or Register  to view this content.
    Thank you for your help.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    4,332

    Re: IF multiple cells = then -1

    Nice to hear that and your welcome.
    You can mark this thread solved..

    Please select Thread Tools from the menu link above and mark this thread as SOLVED. or look at my signature below. Thanks.

+ 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. Capturing Data from multiple cells to multiple tables and cells on specific dates
    By zero_eclipse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 08:38 AM
  2. [SOLVED] Need values of multiple cells based on multiple other cells
    By tridom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-10-2012, 06:48 AM
  3. pasting the content of multiple cells into multiple cells on another sheet
    By cubinity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2011, 09:33 PM
  4. [SOLVED] macro copy/paste data from multiple cells to multiple cells
    By Diana in forum Excel General
    Replies: 0
    Last Post: 07-10-2006, 04:34 PM
  5. make multiple cells in 1 worksheet equal multiple cells in another
    By riley454 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2006, 11:10 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