+ Reply to Thread
Results 1 to 4 of 4

Division

  1. #1
    Registered User
    Join Date
    02-22-2010
    Location
    Aus
    MS-Off Ver
    Excel 2003
    Posts
    1

    Division

    Hello, not sure if I am in the correct area, I don't post in forums often.


    I am creating a spreedsheet where I need to divided the value of one cell by another. E.g
    =A1/A2

    However the numerator could either be in one of two fields i.e A2 or A3.

    I need to write a fomular where if A2 is blank it will use the value of A3.

    Many thanks

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Division

    Maybe...

    =IF(A2<>"",A1/A2,A1/A3)
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Division

    Hi samjs,

    welcome to the forum.

    There are several ways you can do this, e.g.

    =A1/max(A2,A3)
    =A1/if(isblank(A2),A3,A2)
    =A1/sum(A2:A3)

    probably more. Take your pick
    Last edited by teylyn; 02-22-2010 at 02:03 AM. Reason: argument flip

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Division

    although slower than pike, I can be shorter

    =A1/IF(A2<>"",A2,A3)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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