Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help with Cell Formula

I have been trying to accomplish something with an IF statement and I
just can't get it to work so I'm hoping someone here can help me out.
Here is what I'm trying to do.

I have a cell (lets call it A) that needs to pull rates form four
different cells based on criteria form two other cells.

Here is what I need Cell A to do:

Cell B has a numeric value
Cell C has a M or W

If the value in Cell B is "below" 1000 and the value in cell C is "W",
I need to pull from one of the rate cells
If the value in Cell B is "above" 1000 and the value in cell C is "W",
I need to pull from another rate cell

If the value in Cell B is "below" 1000 and the value in cell C is "M",
I need to pull from still another rate cell
If the value in Cell B is "above" 1000 and the value in cell C is "M",
I need to pull from still another rate cell

Hopes this makes sense.

Thanks, Brian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Help with Cell Formula

Hi Brian

Absolutely. Rate cells A1 to A4, containing numerical (!) values. Number in
B1 and M or W in C1. Formula:

=(B1<=1000)*(C1="W")*A1+(B11000)*(C1="W")*A2+(B1< =1000)*(C1="M")*A3+(B11000)*(C1="M")*A4

HTH. Best wishes Harald

"82whiskey" wrote in message
...
I have been trying to accomplish something with an IF statement and I
just can't get it to work so I'm hoping someone here can help me out.
Here is what I'm trying to do.

I have a cell (lets call it A) that needs to pull rates form four
different cells based on criteria form two other cells.

Here is what I need Cell A to do:

Cell B has a numeric value
Cell C has a M or W

If the value in Cell B is "below" 1000 and the value in cell C is "W",
I need to pull from one of the rate cells
If the value in Cell B is "above" 1000 and the value in cell C is "W",
I need to pull from another rate cell

If the value in Cell B is "below" 1000 and the value in cell C is "M",
I need to pull from still another rate cell
If the value in Cell B is "above" 1000 and the value in cell C is "M",
I need to pull from still another rate cell

Hopes this makes sense.

Thanks, Brian


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help with Cell Formula

Hi Harald,

Thanks for your quick response! Works perfectly!

Brian
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
Subtract cell formula from existing cell formula [email protected] Excel Programming 2 December 12th 06 12:03 PM
get the value of a formula in cell B1 into cell A1 without changing my current cell selection News[_4_] Excel Programming 3 October 21st 06 12:24 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


All times are GMT +1. The time now is 02:15 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"