IF formula help

Snowmakertim

New Member
Joined
Oct 26, 2008
Messages
4
Hi All,
I am trying to perform the following calculation
If any cell in B=555ABC then add value in H to G14
Your assistance would be greatly appreciated as this seams simple but I cannot for the life of me get the formula caorrect
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi All,
I am trying to perform the following calculation
If any cell in B=555ABC then add value in H to G14
Your assistance would be greatly appreciated as this seams simple but I cannot for the life of me get the formula caorrect
When you say B is that the whole column B or a particular line in B?
 
Upvote 0
Hi, Its the whole column. I have a several differnet cost centres in B that I want to add the $ value in column H to a total in G14. I hope this makes sense
 
Upvote 0
Hi, Its the whole column. I have a several differnet cost centres in B that I want to add the $ value in column H to a total in G14. I hope this makes sense

This is an array so you must press ctrl+shift+enter

={IF(B1:B10="55abc",$G$14+H1,"")}


Joseph
 
Upvote 0
You can't compare a whole range to a single value like that. If you mean the entire range must be 55abc, then:

=IF(AND(B1:B10="55abc"),$G$14+H1,"")

Confirm with CTRL-SHIFT-ENTER

or without CTRL-SHIFT-ENTER
=IF(COUNTIF(B1:B10,"55abc")=ROWS(B1:B10),$G$14+H1,"")
 
Upvote 0
HOTPEPPER is correct if that is what you meant...I did not read the original question that way.

J
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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