vlookup assistance

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
363
Office Version
  1. 365
Platform
  1. Windows
In column A (A1-A128) MD names are listed and in columns C-CB lists all the facilities they could potentially work at in a given snap shot of time. In each of the cells there can either be a blank or a 1. MDs can work at 1 or two facilities in a given day. Column B totals up columns C-CB.

In cells A130-A257 is a copy of the same information shown above in A1-CB128.

This information is used for an allocation of expenses based on MD days. If an MD worked at two facilities we want to count each day as 50%. It's not likely that the MDs will work at more than two facilities. Again column B represents the totals of all days worked across facilities.

I am trying to create a vlookup with a statement that says vlookup($a130, and if C130>1, then take 50% of each cell that represents a 1, other wise grab each cell.

I may have complicated this more than necessary and maybe a vlookup isn't the best method but we may hire/term some folks along the way.

A B C D E
ROW1: MD NAME TOTAL DAYS FACILITY A FACILITY B FACILITY C
ROW 2 SMITH 2 1 1
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

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