• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Indirect Formula

Dear Experts!

Can you transform the below 3 formulas to Indirect method.

1. OT
=SUMIF(Timesheet!M7:AM7,">10")-COUNTIF(Timesheet!M7:AM7,">10")*10

2.HOT=SUM(Timesheet!AQ7:AZ7)

3.Total Days=COUNTIF(Timesheet!M7:AM7,">0")+COUNTIF(Timesheet!AQ7:AZ7,">0")

Please help!
 
References on the formula are changing when I delete any column. So, in order to keep them I hope indirect formula can help me. Is there any other workaround for this issue?
 
Don't understand, sorry - you are going to need to attach the workbook and give an example of the problem.
 
Try fixing the arrays like this:

=SUM(Timesheet!$AQ$7:$AZ$7)
 
Last edited by a moderator:
For better understanding, I have included the macro button to cut and paste all Fridays to the very end of the document. Then you may notice the changes happening on the formula highlighted on page 2. I need the green ones to be stable.
 

Attachments

  • Sample Indirect (With Macro).xlsm
    613.3 KB · Views: 3
Hi ,

Something like this :

=SUM(INDIRECT("Timesheet!" & "AQ" & ROW() & ":" & "AZ" & ROW()))

Narayan

Wow! It works !!!

Would you please try to give a solution for my other two :


OT =SUMIF(Timesheet!M7:AM7,">10")-COUNTIF(Timesheet!M7:AM7,">10")*10

Total Days=
COUNTIF(Timesheet!M7:AM7,">0")+COUNTIF(Timesheet!AQ7:AZ7,">0")


Many Thanks for your kind help!!!
 
Hi ,

Use the same technique.

=SUMIF(INDIRECT("Timesheet!" & "M" & ROW() & ":" & "AM" & ROW()),">10")-COUNTIF(INDIRECT("Timesheet!" & "M" & ROW() & ":" & "AM" & ROW()),">10")*10

=COUNTIF(INDIRECT("Timesheet!" & "M" & ROW() & ":" & "AM" & ROW()),">0")+COUNTIF(INDIRECT("Timesheet!" & "AQ" & ROW() & ":" & "AT" & ROW()),">0")

Narayan
 
Back
Top