+ Reply to Thread
Results 1 to 5 of 5

Problem divide if

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Granada, Spain
    MS-Off Ver
    Proffesional Plus 2010
    Posts
    3

    Problem divide if

    Hi all, i'm having problems with a formula.

    I want to divide the number in column B between the value in column H, depending on values on colums A and G to match

    I have some meassurements of individual cells, and I want to make a ratio between some of those values. For the cells I have a diameter (unique value per cell) and many cell projections (variable number per cell). I want to divide the neurite (cell projection) length between the cell diameter, so I have a ratio.

    I've made a formula, but it only works for one cell, when it comes to the second one it fails.

    I attach an example so you can see better where the problem is.

    Thank you very much for your help!!

    JP
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Problem divide if

    If I interpreted your problem correctly, paste this into cell D2 and drag down:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Problem divide if

    Try this:

    =B2/VLOOKUP(A2,$G$2:$H$21,2,0)
    Or
    =SUMPRODUCT((A2=$G$2:$G$21)*(B2/$H$2:$H$21))


    Your IF function is only looking at the first item in the array (because the formula is only entered one cell a time), C1, so it is not working if C1 isn't matched.
    Last edited by Speshul; 10-27-2014 at 12:14 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  4. #4
    Registered User
    Join Date
    10-27-2014
    Location
    Granada, Spain
    MS-Off Ver
    Proffesional Plus 2010
    Posts
    3

    Re: Problem divide if

    Quote Originally Posted by mcmahobt View Post
    If I interpreted your problem correctly, paste this into cell D2 and drag down:

    Please Login or Register  to view this content.
    Thank you very much!!! It works perfect!!!

  5. #5
    Registered User
    Join Date
    10-27-2014
    Location
    Granada, Spain
    MS-Off Ver
    Proffesional Plus 2010
    Posts
    3

    Re: Problem divide if

    Quote Originally Posted by mcmahobt View Post
    If I interpreted your problem correctly, paste this into cell D2 and drag down:

    Please Login or Register  to view this content.
    Thank you very much!!! It works perfect!!!

+ 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. Problem using sumif to divide by a range
    By Flobiwan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2012, 04:20 PM
  2. [SOLVED] Divide by zero
    By mmccra2858 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2012, 08:37 AM
  3. sumproduct problem with divide by 0 error
    By sunilmulay in forum Excel General
    Replies: 4
    Last Post: 07-22-2009, 07:49 AM
  4. [SOLVED] get #DIV/0!:divide by zero
    By chiuinggum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2006, 04:55 AM
  5. Divide Problem
    By Syed Haider Ali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2005, 07:06 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