radiob

New Member
Joined
Aug 12, 2015
Messages
2
=IF([TimeSheets.xlsx]Tim!B12="_r2500",(SUM('[TimeSheets.xlsx]1st:Last'!$E$23)),"0.0")

This works as expected; however, I need to expand the "Tim" worksheet to include 1st:Last. (When I attempt this, I receive a #REF error.) I don't understand why 1st:Last works in the SUM, but not in the IF statement.

I also need to expand "B12" to include whether the value "_r2500" appears anywhere in column B. (When I attempt this, I also receive a #REF error.) In other words, I need to SUM all instances of "_r2500" to this cell. I have tried "$B:$B" as well as other iterations, but break the formula.

To further complicate matters, if my IF formula proves false, I need the entire row in the resulting invoice to be deleted. "0.0" could obviously be anything that would help toward that end.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Update: I realized that I was attempting too much in a single formula. I've now solved and completed the first two steps above. Still seeking a response on the final point, please: dynamically displaying or not displaying a line on the resulting invoice, based on the sum result. Thank you!
 
Upvote 0
You can delete a row with a macro. However, you can also blank it out if you use "" instead of "0.0" in your formula. The cell will look blank.
 
Upvote 0

Forum statistics

Threads
1,214,565
Messages
6,120,254
Members
448,952
Latest member
kjurney

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