IF OR SUMIF OR SUMTHING ELSE

Dunc

New Member
Joined
Oct 24, 2002
Messages
12
Sorry about the subject title for all you searching but I couldnt summarise it. (in fact im having difficulty explaining it)

I would like the formula

IF the text of a cell in column D = "STRING" THEN its corresponding cell in column C should be added to the cell where the formula is.

With Kind Regards


Duncan
This message was edited by Dunc on 2002-10-25 13:01
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
On 2002-10-25 12:52, Dunc wrote:
Sorry about the subject title for all you searching but I couldnt summarise it. (in fact im having difficulty explaining it)

I would like the formula

IF the text of a cell in column D = "STRING" THEN its corresponding cell in column C should be added to the cell where the formula is.

With Kind Regards


Duncan

Hello Duncan

What happened when you used Sumif?

SUMIF(range,criteria,sum_range)

You could show an example of your formula.
 
Upvote 0
??

=IF(D1="STRING",C1&D1,"")

EDIT On second thoughts:

=YourFormula+IF(D1="STRING",C1,0)
This message was edited by Andrew Poulsom on 2002-10-25 13:08
 
Upvote 0
On 2002-10-25 13:04, Andrew Poulsom wrote:
??

=IF(D1="STRING",C1&D1,"")

EDIT On second thoughts:

=YourFormula+IF(D1="STRING",C1,0)
This message was edited by Andrew Poulsom on 2002-10-25 13:08

Andrew I appreciate your response and from now on I will write the formulas that I have tried because then you would have known that I had already worked out how to do it on a cell per cell basis what I was actually looking for was a single formula that would do exactly the same for all cells in column. (dynamically)

Again Kind Regards

Duncan
 
Upvote 0
Sorry Andrew I have been so busy I have not had time to review the posts. Yes that worked on a cell per cell basis but not on a column basis. Does this make sense?
 
Upvote 0
I would ultimately like to have the formula tocalculate for a column not a cell.
dunc.xls
ABCDEF
1productdatedebitcreditpurchased
2
31-Jan-02
4
5hammer1/1/20021.00diyshop
6nails1/1/20022.00diyshop
7teabags1/2/20020.50cornerstore
8milk1/3/20020.30farmer
9
101-Feb-021.00
11
12coffee2/1/20021.00diyshop
13mortgage2/1/200210.00thebank
14plasters2/2/20020.75hospital
15sand2/3/20023.00diyshop
16cement2/4/20021.50diyshop
ademo
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top