IF OR SUMIF OR SUMTHING ELSE

Dunc

New Member
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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Dave Patton

Well-known Member
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.

Andrew Poulsom

MrExcel MVP
??

=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

Dunc

New Member
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

Andrew Poulsom

MrExcel MVP
Do you mean literally the word STRING or any string?

Dunc

New Member

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?

Dunc

New Member
No I mean a specific string ie: string = "myname"

Dunc

New Member
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

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,243
Messages
5,836,205
Members
430,406
Latest member
pmav

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.

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

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