Formula to calculate IF a certain cell has data and leave blank if not.

lzweifel

Board Regular
Joined
Feb 21, 2006
Messages
213
I know this is simple, but I can't quite get it...

IF B26 has any information I want H26 to deliver $155.00, but if B26 has no information in it I want it left blank.

Thanks in advance,

L
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Code:
=IF(B26="","",155)

change 155 part to whatever
 
Last edited:
Upvote 0
How about
=IF(B26<>"","$155.00","")
 
Upvote 0
Yes that works Fluff... thank you. Now what if I want to have a formula to calculate within that. So, now...

=IF(B26)<>"", (I26*G26) So, if there is information in B26 that would populate I26 and then I would want calculate G26 x I26.

What I am doing is if there is information in B26, 27, 28 etc. then calculate a rate and then multiply that rate by how many units in another cell... but if there is nothing in the B column cell I want the remainder of the line to remain blank.

Thanks!
 
Upvote 0
Not sure I understand what you're after.
Do you simply want H26 to calculate I26*G26 if B26 has a value?
 
Upvote 0
I could have done it that way, but decided to take the OP literally.
 
Upvote 0
Yes, you have it correct..... I have a row, which in the column B may or may not have information entered into it. IF information is entered in I want my rates to appear in another column (first formula) and when a number (quantity) is entered in a third column a separate formula will calculate the rate and quantity giving me a column of totals.... BUT, if nothing is entered in that first column I want the entire row to appear blank, not with zeros.


B) Text entered by user..... G) Quantity entered by user.... H) Rate Formula =IF(B26<>"","$155.00","").... J) formula to calculate G*H (Quantity x Rate)

If NO text is entered in column B then the entire row should stay blank.

Thanks!!

L
 
Upvote 0
In J26
=IF(H26<>"",G26*H26,"")
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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