Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need some help with conditional functions

I am having some difficulty creating a formular to copy a cell value t
another only if a certain condition is met.
I am working on a wine cellar program and want to look at wines b
type, variety and calculate values.
I have produced a worksheet that links to another sheet used as a mai
database. I have used auto filter in this new worksheet to seperate th
types of wines I want to look at (red, white etc)
Now that I'm able to seperate the wines by type I want to know th
total value ot that type. I need a formular that saids
' If the type is red copy the value in cell X to cell Y. If the type i
white copy the cell X to cell Z.
Any help would be appreciated.
Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Need some help with conditional functions

If you're using autofilter, I'd suggest you look at SUBTOTAL().

Assume your cost is in column C. Use

=SUBTOTAL(9, C:C)

which will sum the visible cells in column C.

In article ,
marvontherim wrote:

I am having some difficulty creating a formular to copy a cell value to
another only if a certain condition is met.
I am working on a wine cellar program and want to look at wines by
type, variety and calculate values.
I have produced a worksheet that links to another sheet used as a main
database. I have used auto filter in this new worksheet to seperate the
types of wines I want to look at (red, white etc)
Now that I'm able to seperate the wines by type I want to know the
total value ot that type. I need a formular that saids
' If the type is red copy the value in cell X to cell Y. If the type is
white copy the cell X to cell Z.
Any help would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need some help with conditional functions

Hi JE Mc Gimpsey,
Thank you for responding to my question.
How would this satisfy the conditional question (red or white)
Is there a way I can send you the worksheet so you may have a bette
understanding of the problem

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Need some help with conditional functions

If you're autofiltering, then filter on red or white.

In article ,
marvontherim wrote:

How would this satisfy the conditional question (red or white)

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need some help with conditional functions

JE McGimpsey
I'm sorry I guess I'm not explaining myself correctly. I know you ar
trying to help and I hope I'm not wasting your time.

The function:
=IF(D7="RED",G7,0)
Tells me that if D7 is red copy the value of G7 in this cell
My problem is if it dosn't meet that condition I want it to post a $
value
It's probably something small I am overlooking I just can't seem to ge
it right

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need some help with conditional functions

Hi JE McGimpsey
I figured it out and it seems to be working the way I want it to.
Thanks again for your help

--
Message posted from http://www.ExcelForum.com

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Need some help with conditional functions

As far as I can tell, the formula gives exactly the response you're
after: If D7 contains the text "RED", then the value in G7 is entered
into the cell. if D7 does not contain "RED", then 0 is entered into the
cell.

In article ,
marvontherim wrote:

JE McGimpsey
I'm sorry I guess I'm not explaining myself correctly. I know you are
trying to help and I hope I'm not wasting your time.

The function:
=IF(D7="RED",G7,0)
Tells me that if D7 is red copy the value of G7 in this cell
My problem is if it dosn't meet that condition I want it to post a $0
value
It's probably something small I am overlooking I just can't seem to get
it right.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Need some help with conditional functions

two ways, both assuming wine type is in column C

in column Y:
=if(c2="red",x2,0)
in column Z:
=if(c2="white",x2,0)

or using sumif - in the cell you want the total put:
=sumif(c:c,"red",x:x)
and (in another cell)
= sumif(c:c,"white",x:x)

"marvontherim " wrote:

I am having some difficulty creating a formular to copy a cell value to
another only if a certain condition is met.
I am working on a wine cellar program and want to look at wines by
type, variety and calculate values.
I have produced a worksheet that links to another sheet used as a main
database. I have used auto filter in this new worksheet to seperate the
types of wines I want to look at (red, white etc)
Now that I'm able to seperate the wines by type I want to know the
total value ot that type. I need a formular that saids
' If the type is red copy the value in cell X to cell Y. If the type is
white copy the cell X to cell Z.
Any help would be appreciated.
Thanks


---
Message posted from http://www.ExcelForum.com/


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need some help with conditional functions

Hi JE Mc Gimpsey,
I think were closer
Column D is where the wine type is recorded.
Column G is where the value is recorded
Column I is where I want only Red wine values to copy
Column J is where I want white wines to copy
And so with other varieties
The wines column may change to different varieties as wine is relocate
around the cellar
The function needs to say If column d D is red than copy the value o
column g in column I if not return a zero
=IF(D7="RED",1,G7),(D7="WHITE",1,H7) and so on for all the variou
varieties.
This function will be in every column that requires a value column
and J etc.

I get dizzy thinking about it

--
Message posted from http://www.ExcelForum.com

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
Multiple functions, conditional functions HeatherBelle Excel Worksheet Functions 7 October 17th 08 03:57 PM
conditional functions pytelium Excel Discussion (Misc queries) 3 January 8th 06 11:09 AM
Conditional functions Big Jones Excel Worksheet Functions 1 August 17th 05 12:48 PM
Conditional functions Rednelle Excel Worksheet Functions 3 December 7th 04 03:33 PM
Need some help with conditional functions marvontherim Excel Programming 2 June 13th 04 10:17 PM


All times are GMT +1. The time now is 12:33 PM.

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

About Us

"It's about Microsoft Excel"