+ Reply to Thread
Results 1 to 7 of 7

Writing a formula

  1. #1
    julescc
    Guest

    Writing a formula

    Does anyone know how I can write a formula for a sales order sheet that I am
    creating that will allow me to insert a quantity in one of two column/cells
    and have a subtotal cell read between those two quantity cells and have the
    formula place the correct quanity to the respective price in the subtotal
    field?

    Thanks!
    --
    Jules

  2. #2
    Tim C
    Guest

    Re: Writing a formula

    If I am understanding you correctly:

    C4: may have a quantity or may be blank
    D4: may have a quanitity or may be blank
    E4: price each
    F4: total

    In F4, use:
    =(C4+D4)*E4

    Tim C

    "julescc" <[email protected]> wrote in message
    news:[email protected]...
    > Does anyone know how I can write a formula for a sales order sheet that I
    > am
    > creating that will allow me to insert a quantity in one of two
    > column/cells
    > and have a subtotal cell read between those two quantity cells and have
    > the
    > formula place the correct quanity to the respective price in the subtotal
    > field?
    >
    > Thanks!
    > --
    > Jules




  3. #3
    julescc
    Guest

    Re: Writing a formula

    You are close....

    C4: is a price
    D4: may have a quantity or may be blank
    E4: is a price
    F4: may have a quantity or may be blank
    G4: Subtotal to reflect whether D4 or F4 has a qty * the respective price

    "Tim C" wrote:

    > If I am understanding you correctly:
    >
    > C4: may have a quantity or may be blank
    > D4: may have a quanitity or may be blank
    > E4: price each
    > F4: total
    >
    > In F4, use:
    > =(C4+D4)*E4
    >
    > Tim C
    >
    > "julescc" <[email protected]> wrote in message
    > news:[email protected]...
    > > Does anyone know how I can write a formula for a sales order sheet that I
    > > am
    > > creating that will allow me to insert a quantity in one of two
    > > column/cells
    > > and have a subtotal cell read between those two quantity cells and have
    > > the
    > > formula place the correct quanity to the respective price in the subtotal
    > > field?
    > >
    > > Thanks!
    > > --
    > > Jules

    >
    >
    >


  4. #4
    Joe S.
    Guest

    Re: Writing a formula

    Try
    =IF(ISNUMBER(D4),C4*D4,E4*F4)

    If there is not a number in either C4 or E4, the result will be 0.

    "julescc" wrote:

    > You are close....
    >
    > C4: is a price
    > D4: may have a quantity or may be blank
    > E4: is a price
    > F4: may have a quantity or may be blank
    > G4: Subtotal to reflect whether D4 or F4 has a qty * the respective price
    >
    > "Tim C" wrote:
    >
    > > If I am understanding you correctly:
    > >
    > > C4: may have a quantity or may be blank
    > > D4: may have a quanitity or may be blank
    > > E4: price each
    > > F4: total
    > >
    > > In F4, use:
    > > =(C4+D4)*E4
    > >
    > > Tim C
    > >
    > > "julescc" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Does anyone know how I can write a formula for a sales order sheet that I
    > > > am
    > > > creating that will allow me to insert a quantity in one of two
    > > > column/cells
    > > > and have a subtotal cell read between those two quantity cells and have
    > > > the
    > > > formula place the correct quanity to the respective price in the subtotal
    > > > field?
    > > >
    > > > Thanks!
    > > > --
    > > > Jules

    > >
    > >
    > >


  5. #5
    Joe S.
    Guest

    Re: Writing a formula

    This assumes that there will be only one quantity (i.e., value in either C4
    or D4, not both).

    "Joe S." wrote:

    > Try
    > =IF(ISNUMBER(D4),C4*D4,E4*F4)
    >
    > If there is not a number in either C4 or E4, the result will be 0.
    >
    > "julescc" wrote:
    >
    > > You are close....
    > >
    > > C4: is a price
    > > D4: may have a quantity or may be blank
    > > E4: is a price
    > > F4: may have a quantity or may be blank
    > > G4: Subtotal to reflect whether D4 or F4 has a qty * the respective price
    > >
    > > "Tim C" wrote:
    > >
    > > > If I am understanding you correctly:
    > > >
    > > > C4: may have a quantity or may be blank
    > > > D4: may have a quanitity or may be blank
    > > > E4: price each
    > > > F4: total
    > > >
    > > > In F4, use:
    > > > =(C4+D4)*E4
    > > >
    > > > Tim C
    > > >
    > > > "julescc" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Does anyone know how I can write a formula for a sales order sheet that I
    > > > > am
    > > > > creating that will allow me to insert a quantity in one of two
    > > > > column/cells
    > > > > and have a subtotal cell read between those two quantity cells and have
    > > > > the
    > > > > formula place the correct quanity to the respective price in the subtotal
    > > > > field?
    > > > >
    > > > > Thanks!
    > > > > --
    > > > > Jules
    > > >
    > > >
    > > >


  6. #6
    Tim C
    Guest

    Re: Writing a formula

    =C4*D4+E4*F4

    Tim C

    "julescc" <[email protected]> wrote in message
    news:[email protected]...
    > You are close....
    >
    > C4: is a price
    > D4: may have a quantity or may be blank
    > E4: is a price
    > F4: may have a quantity or may be blank
    > G4: Subtotal to reflect whether D4 or F4 has a qty * the respective price
    >
    > "Tim C" wrote:
    >
    >> If I am understanding you correctly:
    >>
    >> C4: may have a quantity or may be blank
    >> D4: may have a quanitity or may be blank
    >> E4: price each
    >> F4: total
    >>
    >> In F4, use:
    >> =(C4+D4)*E4
    >>
    >> Tim C
    >>
    >> "julescc" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > Does anyone know how I can write a formula for a sales order sheet that
    >> > I
    >> > am
    >> > creating that will allow me to insert a quantity in one of two
    >> > column/cells
    >> > and have a subtotal cell read between those two quantity cells and have
    >> > the
    >> > formula place the correct quanity to the respective price in the
    >> > subtotal
    >> > field?
    >> >
    >> > Thanks!
    >> > --
    >> > Jules

    >>
    >>
    >>




  7. #7
    julescc
    Guest

    Re: Writing a formula

    Your formula worked Joe - thanks! It did exactly what I needed it to!

    "Joe S." wrote:

    > This assumes that there will be only one quantity (i.e., value in either C4
    > or D4, not both).
    >
    > "Joe S." wrote:
    >
    > > Try
    > > =IF(ISNUMBER(D4),C4*D4,E4*F4)
    > >
    > > If there is not a number in either C4 or E4, the result will be 0.
    > >
    > > "julescc" wrote:
    > >
    > > > You are close....
    > > >
    > > > C4: is a price
    > > > D4: may have a quantity or may be blank
    > > > E4: is a price
    > > > F4: may have a quantity or may be blank
    > > > G4: Subtotal to reflect whether D4 or F4 has a qty * the respective price
    > > >
    > > > "Tim C" wrote:
    > > >
    > > > > If I am understanding you correctly:
    > > > >
    > > > > C4: may have a quantity or may be blank
    > > > > D4: may have a quanitity or may be blank
    > > > > E4: price each
    > > > > F4: total
    > > > >
    > > > > In F4, use:
    > > > > =(C4+D4)*E4
    > > > >
    > > > > Tim C
    > > > >
    > > > > "julescc" <[email protected]> wrote in message
    > > > > news:[email protected]...
    > > > > > Does anyone know how I can write a formula for a sales order sheet that I
    > > > > > am
    > > > > > creating that will allow me to insert a quantity in one of two
    > > > > > column/cells
    > > > > > and have a subtotal cell read between those two quantity cells and have
    > > > > > the
    > > > > > formula place the correct quanity to the respective price in the subtotal
    > > > > > field?
    > > > > >
    > > > > > Thanks!
    > > > > > --
    > > > > > Jules
    > > > >
    > > > >
    > > > >


+ 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