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
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,579
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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
Joined
Jul 21, 2002
Messages
73,092
??

=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
Joined
Oct 24, 2002
Messages
12
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
Joined
Jul 21, 2002
Messages
73,092

ADVERTISEMENT

So is your problem solved?
 

Dunc

New Member
Joined
Oct 24, 2002
Messages
12

ADVERTISEMENT

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
Joined
Oct 24, 2002
Messages
12
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
 

Watch MrExcel Video

Forum statistics

Threads
1,123,474
Messages
5,601,872
Members
414,479
Latest member
Beau the dog

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
Top