Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default conditional statement using validation cell

I need help on writing this function that uses a value from a drop down menu
created with Data/Validation menu items.

D column has pull down menu of either 'Bought' or 'Sold' created on sheet 2
named Action by Data then Validation menu item.
Im trying to keep track of stocks. I Have I and J columns resulting in
values .
In the I column for each row i want to use something like
if D6 is Bought then (f6*G6)+H6 and I want the value to be place into I6 if
the value in D6 is Sold then i want J6 to show the result of f6*g6+h7
I6 is named total out and J6 is named total in.
This would be the same for rows 4 thru 37 so far. So insted of the 6
wahtever row number would replace that 6
ie. for F row the I12 cell would read
If D12 is bought then (f12*g12)+h12 else place this value into J12

I hope this would be easiest way to get my values. Any help is greatly
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default conditional statement using validation cell

In column I:
=IF(D4="Bought",F6*G6+H6,"")
In column J,
=IF(D4="Sold",F6*G6+H6,"")

Then just copy down as needed.
--
Best Regards,

Luke M


"kfarley537" wrote:

I need help on writing this function that uses a value from a drop down menu
created with Data/Validation menu items.

D column has pull down menu of either 'Bought' or 'Sold' created on sheet 2
named Action by Data then Validation menu item.
Im trying to keep track of stocks. I Have I and J columns resulting in
values .
In the I column for each row i want to use something like
if D6 is Bought then (f6*G6)+H6 and I want the value to be place into I6 if
the value in D6 is Sold then i want J6 to show the result of f6*g6+h7
I6 is named total out and J6 is named total in.
This would be the same for rows 4 thru 37 so far. So insted of the 6
wahtever row number would replace that 6
ie. for F row the I12 cell would read
If D12 is bought then (f12*g12)+h12 else place this value into J12

I hope this would be easiest way to get my values. Any help is greatly
appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default conditional statement using validation cell

Ok so there is no way to place information in column I that would place
information into column J if the value in I is false?
+If(D4="Bought",R6*G6+H6,"")else J4=r6*g6+h6 ?????

"Luke M" wrote:

In column I:
=IF(D4="Bought",F6*G6+H6,"")
In column J,
=IF(D4="Sold",F6*G6+H6,"")

Then just copy down as needed.
--
Best Regards,

Luke M


"kfarley537" wrote:

I need help on writing this function that uses a value from a drop down menu
created with Data/Validation menu items.

D column has pull down menu of either 'Bought' or 'Sold' created on sheet 2
named Action by Data then Validation menu item.
Im trying to keep track of stocks. I Have I and J columns resulting in
values .
In the I column for each row i want to use something like
if D6 is Bought then (f6*G6)+H6 and I want the value to be place into I6 if
the value in D6 is Sold then i want J6 to show the result of f6*g6+h7
I6 is named total out and J6 is named total in.
This would be the same for rows 4 thru 37 so far. So insted of the 6
wahtever row number would replace that 6
ie. for F row the I12 cell would read
If D12 is bought then (f12*g12)+h12 else place this value into J12

I hope this would be easiest way to get my values. Any help is greatly
appreciated.

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
Validation in a Conditional Statement JanW Excel Worksheet Functions 2 June 6th 07 02:21 PM
Can I include a "validation drop down" in a conditional statement? JanW Excel Worksheet Functions 1 June 5th 07 08:50 PM
Need conditional statement to paint a cell Jim Thomlinson Excel Discussion (Misc queries) 0 May 31st 06 03:44 PM
Need conditional statement to paint a cell Jim Thomlinson Excel Worksheet Functions 0 May 31st 06 03:44 PM
How do I use a conditional (IF) statement in Data Validation? LindaB Excel Worksheet Functions 3 August 13th 05 12:51 AM


All times are GMT +1. The time now is 09:24 AM.

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"