Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Need Help figure out this formula in my Finish Schedule.

Need Help figure out this formula in my Finish Schedule.

KMillerVGJK4
Participant Participant
832 Views
8 Replies
Message 1 of 9

Need Help figure out this formula in my Finish Schedule.

KMillerVGJK4
Participant
Participant

I have Finish Schedule and some of my cost for my finishes are by the slabs and others are by square feet. I'm trying to have a field that will do the following:

 

If the (number of slabs are < 1) then the field shall take the (material area * material cost) , but if the (number of slabs are > 0) then the field shall (number of slabs * material cost)

 

This is what I have: IF(NO. SLABS > 1 (Material: Area / 1 SF * Material: Cost),(NO. SLABS*Material: Cost))

 

New to using formulas, if anyone can help me figure this out I would appreciate it.

 

thanks,

0 Likes
Accepted solutions (1)
833 Views
8 Replies
Replies (8)
Message 2 of 9

Redrunner92
Collaborator
Collaborator
Accepted solution

@KMillerVGJK4 wrote:

This is what I have: IF(NO. SLABS > 1, (Material: Area / 1 SF * Material: Cost),(NO. SLABS*Material: Cost))


First, I immediately noticed your formula is missing a comma. See it in red font in the quotation above.

Second, you used greater than when your explanation leads me to believe you want to use less than in your main conditional statement. This is because the first option after the conditional statement is for the "if true" result, while the second is for the "if false" result.

Third, is your "No. Slabs" parameter a number or an integer? If it is an integer, then the value range <1 will only yield 0 (when dealing with absolute values, that is to say, when excluding negative numbers). A number type parameter would be better suited to allow for decimal ranges between zero and one.

Just some thoughts. Will the formula work when you consider these three points?

 

0 Likes
Message 3 of 9

KMillerVGJK4
Participant
Participant

@Redrunner92  Thanks, adding the comma has it working now. Now my problem is, I have my schedule combining like Instance ( unchecked Itemize every instance). So now its multiplying all the instance instead of just taking the number of slabs the column is reporting. So example the field read "1" but since there is 6 itemize its multiplying it 6 times.

I just want it to multiply it by the number with in the filed.

 

See attached image

Finsih schedule.PNG

0 Likes
Message 4 of 9

barthbradley
Consultant
Consultant

@KMillerVGJK4 wrote:

So now its multiplying all the instance instead of just taking the number of slabs the column is reporting. So example the field read "1" but since there is 6 itemize its multiplying it 6 times.

 


 

It ain't going to happen.  Go have a beer.  Been on the Wish List forever.  Learn to love it -- and drink to it.   

0 Likes
Message 5 of 9

Redrunner92
Collaborator
Collaborator

Try adding the Count field to your schedule. You can make it a Hidden field if you don't want to show it. Then make the final part of your formula read like so:
... , (NO. SLABS*Material: Cost/Count))
Let's see if that works.

0 Likes
Message 6 of 9

KMillerVGJK4
Participant
Participant

@Redrunner92  No that's not working, it wont let me use Count in the formula. It gives me this message:

Capture.PNG

0 Likes
Message 7 of 9

Redrunner92
Collaborator
Collaborator

I was afraid of that. I haven't tried to use the Count field in a formula for quite a while and this reminded me why. In that case, that specific calculation won't be possible with Revit's current capabilities, unfortunately 😞

0 Likes
Message 8 of 9

KMillerVGJK4
Participant
Participant

Thanks!! you still were a BIG help.

Message 9 of 9

Redrunner92
Collaborator
Collaborator

You're welcome!

0 Likes