Need to Expand Current Formula

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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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