Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
julescc
 
Posts: n/a
Default 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   Report Post  
Tim C
 
Posts: n/a
Default

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" wrote in message
...
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   Report Post  
julescc
 
Posts: n/a
Default

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" wrote in message
...
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   Report Post  
Joe S.
 
Posts: n/a
Default

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" wrote in message
...
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   Report Post  
Joe S.
 
Posts: n/a
Default

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" wrote in message
...
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   Report Post  
Tim C
 
Posts: n/a
Default

=C4*D4+E4*F4

Tim C

"julescc" wrote in message
...
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" wrote in message
...
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   Report Post  
julescc
 
Posts: n/a
Default

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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
I need help writing a formula. John III Excel Worksheet Functions 4 December 31st 04 07:26 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Trouble writing an excel formula... Stumped by If Thens.... Excel Worksheet Functions 3 December 19th 04 02:39 PM


All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"