formula troubles

RattlingCarp3048

Board Regular
Joined
Jan 12, 2022
Messages
166
Office Version
  1. 365
Platform
  1. Windows
another formula kicking me in the back side this week :( tgif cuz my brain is not working today.

In E13 i have a base formula to insert which is =((major+(minor/5))/total count). i will repeat the formula for each of the 3 categories: grossing, embedding, microtomy. starting with grossing, Major =C13, minor =D13, total count is on another sheet Summary Column N.

in this case, E13=look up the employee name in Sheet1 B3 which is somewhere in the summary tab column B. then calculate ((1+(1/5))/12) =0.1

sheet 1
1646418533787.png


summary tab
1646416340717.png


1646418419032.png


1646418480776.png



problems:
- C and D are both "-" returned from a formula.
- there may not be a value in C so the formula would only need to calculate D
- there may not be a value in D so only calculate C
- not sure how to incorporate looking up the employee name
 
Just to give you a couple of options, the formula can be shorten to one of these:

Excel Formula:
=IF(AND(C13="-",D13="-"),"-",(N(C13)+N(D13)/5)/INDEX(SUMMARY!N:N,MATCH(B3,SUMMARY!B:B,0),1))

Or

Excel Formula:
=IF(AND(C13="-",D13="-"),"-",(N(C13)+N(D13)/5)/VLOOKUP(B3,SUMMARY!B:N,13,0))
Thanks Jtakw! Ill look into those options as well. At least for now i have options :)
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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