Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
booroni
 
Posts: n/a
Default Creating a specific formula

I need to create a formula that checks to see that the text in 2 different
cells are supposed to be what the formula specifies before it calculates the
sum of 2 other cells
ie..
cell A1 = "Last"
cell B1 = "First"
cell C1 = "25"
cell D1 = "75"

The formula needs to be sure that cells a1 and b1 contain those exact words
otherwise it will give a response of "0"....but if they do contain those
exact words than the response would be the sum of cells c1 and d1....."100"

How do I write this formula correctly?
  #2   Report Post  
Max
 
Posts: n/a
Default

One way

Put in E1:

=IF(AND(TRIM(A1)="Last",TRIM(B1)="First"),SUM(C1:D 1),0)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"booroni" wrote in message
...
I need to create a formula that checks to see that the text in 2 different
cells are supposed to be what the formula specifies before it calculates

the
sum of 2 other cells
ie..
cell A1 = "Last"
cell B1 = "First"
cell C1 = "25"
cell D1 = "75"

The formula needs to be sure that cells a1 and b1 contain those exact

words
otherwise it will give a response of "0"....but if they do contain those
exact words than the response would be the sum of cells c1 and

d1....."100"

How do I write this formula correctly?



  #3   Report Post  
booroni
 
Posts: n/a
Default

That worked perfectly....thank you. Thanx for the fast response too.

"Max" wrote:

One way

Put in E1:

=IF(AND(TRIM(A1)="Last",TRIM(B1)="First"),SUM(C1:D 1),0)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"booroni" wrote in message
...
I need to create a formula that checks to see that the text in 2 different
cells are supposed to be what the formula specifies before it calculates

the
sum of 2 other cells
ie..
cell A1 = "Last"
cell B1 = "First"
cell C1 = "25"
cell D1 = "75"

The formula needs to be sure that cells a1 and b1 contain those exact

words
otherwise it will give a response of "0"....but if they do contain those
exact words than the response would be the sum of cells c1 and

d1....."100"

How do I write this formula correctly?




  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
Thanks for the feedback

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"booroni" wrote in message
...
That worked perfectly....thank you. Thanx for the fast response too.



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
Creating a formula using absolute referencing - I think!! Victoria Excel Worksheet Functions 4 February 26th 05 08:13 PM
Creating Formula using check boxes Anthony Slater Excel Discussion (Misc queries) 3 January 4th 05 03:03 PM
Help creating a formula, pulling from a set of static numbers. James Excel Worksheet Functions 1 December 20th 04 06:39 AM
How do I create a formula to add values from specific fields? Greg Excel Worksheet Functions 1 December 14th 04 03:10 PM
How do I create a formula to add values from specific fields? cabodiamonds Excel Worksheet Functions 1 December 14th 04 04:53 AM


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