Excel formula/syntax question

mkrass

New Member
Joined
Mar 12, 2024
Messages
15
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
For the attached, I don't know how to write a formula for E17:E37 that will provide the same results as F17:F37. I think it has to do with how a merged cell is "considered", but I am not sure. Any help would be appreciated.

Approvals Test.xlsx
ABCDEFGHIJKLMN
1Today's Date3/27/2024
2Labor Threshold10.00%
3Revenue Threshold60.00%
4Credit Expiry1/5/2024
51/6/2024
61/7/2024
7
8Key
9PTO/Holiday
10Insert data
11Insert data (weekend)Note: Adjust Group or hide/unhide row/column, as needed DO NOT DELETE ROWs or COLUMNs
12Approved - A
13Planned - PA
141/1/20241/2/20241/3/20241/4/20241/5/20241/6/20241/7/2024
15RoleResource NameCountryBudgeted HoursBilled Hours (Weekly Approval)Billed Hours (Daily Approval)Available HoursAAAAAAA
16Workstream 124042294-162
17PrincipleBobUS60214182222222
18Sr Con - NSXSallyUS80214622222222
19Sr PM HelenUS100214822222222
20<Insert Role Name><Insert Resource Name><Country>0214-182222222
21<Insert Role Name><Insert Resource Name><Country>0214-182222222
22<Insert Role Name><Insert Resource Name><Country>0214-182222222
23<Insert Role Name><Insert Resource Name><Country>0214-182222222
24<Insert Role Name><Insert Resource Name><Country>0214-182222222
25<Insert Role Name><Insert Resource Name><Country>0214-182222222
26<Insert Role Name><Insert Resource Name><Country>0214-182222222
27<Insert Role Name><Insert Resource Name><Country>0214-182222222
28<Insert Role Name><Insert Resource Name><Country>0214-182222222
29<Insert Role Name><Insert Resource Name><Country>0214-182222222
30<Insert Role Name><Insert Resource Name><Country>0214-182222222
31<Insert Role Name><Insert Resource Name><Country>0214-182222222
32<Insert Role Name><Insert Resource Name><Country>0214-182222222
33<Insert Role Name><Insert Resource Name><Country>0214-182222222
34<Insert Role Name><Insert Resource Name><Country>0214-182222222
35<Insert Role Name><Insert Resource Name><Country>0214-182222222
36<Insert Role Name><Insert Resource Name><Country>0214-182222222
37<Insert Role Name><Insert Resource Name><Country>0214-182222222
Sheet1
Cell Formulas
RangeFormula
B1B1=TODAY()
A16,A17:C37A16='[DRAFT - TM Project Forecast - MCK Working File.xlsx]Project Setup'!B11
D16:G16D16=SUM(D17:D37)
E17:E37E17=SUMIF($13:$13,"A",17:17)
F17:F37F17=SUMIF($15:$15,"A",17:17)
G17:G37G17=D17-SUM(H17:AK17,AM17:BO17,BQ17:CU17,CX17:EA17,EC17:FG17,FI17:GL17,GN17:HR17,HT17:IX17,IZ17:KC17,KE17:LI17,LK17:MN17,MP17:NT17,NV17:OZ17,PB17:QC17,QE17:RI17,RK17:SN17,SP17:TT17,TV17:UY17,VA17:WE17,WG17:XK17,XM17:YP17,YR17:ZV17,ZX17:ABA17,ABC17:ACG17,ACI17:ADM17,ADO17:ADO17)
D19:D37D19='[DRAFT - TM Project Forecast - MCK Working File.xlsx]Project Setup'!F14
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H17:N37,H39:N59Expression=COUNTIF($H$13, "A")textNO
H19:BQ19Expression=AND(ISNUMBER(H$14),SUMIFS($H19:H19,$H$14:H$14,"<>")>=$D$19*$B$2)textNO
H18:BQ18Expression=AND(ISNUMBER(H$14),SUMIFS($H18:H18,$H$14:H$14,"<>")>=$D$18*$B$2)textNO
H17:BS17Expression=AND(ISNUMBER(H$14),SUMIFS($H17:H17,$H$14:H$14,"<>")>=$D$17*$B$2)textNO
N17:N37,N39:N59Expression=COUNTIF($N$15, "A")textNO
M17:M37,M39:M59Expression=COUNTIF($M$15, "A")textNO
L17:L37,L39:L59Expression=COUNTIF($L$15, "A")textNO
K17:K37,K39:K59Expression=COUNTIF($K$15, "A")textNO
J17:J37,J39:J59Expression=COUNTIF($J$15, "A")textNO
I17:I37,I39:I59Expression=COUNTIF($I$15, "A")textNO
H17:H37,H39:H59Expression=COUNTIF($H$15, "A")textNO
H15:BS15Cell Value="A"textNO
H15:BS15Cell Value="P"textNO
H14:AL59Expression=H$14=$B$4textNO
H14:AL59Expression=H$14=$B$5textNO
H14:AL59Expression=H$14=$B$6textNO
H13,O13,V13,AC13,AJ13,AR13,AY13,BF13,BM13Cell Value="A"textNO
H13,O13,V13,AC13,AJ13,AR13,AY13,BF13,BM13Cell Value="P"textNO
G17:G37Cell Value<0textNO
G16:G59Cell Value<0textNO
Cells with Data Validation
CellAllowCriteria
H13:U13ListA, P
H15:N15ListA, P
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I'm assuming your talking about Cell E17
=SUMIF($13:$13,"A",17:17)

Yes, Merged cells cannot apply to each individual column. The merged cell address is H13. You will have to put letters in each cell from H13:N13 for the formula to work as intended
 
Upvote 0
Jeffrey,
Thank you.
Is there a way to write a different formula that will allow for the merged cell and yet total the individual cells from the respective rows? Using the condition that the merged cell has a value of "A"?
 
Upvote 0
You might be better off Unmerging the cells, Highlight the cells to be used then using Format cells>>General>>Alignment>>"Center Across Selection"
Avoid Merged cells at all cost....IMHO,it should never have been in Excel in the first place
 
Upvote 0
You might be better off Unmerging the cells, Highlight the cells to be used then using Format cells>>General>>Alignment>>"Center Across Selection"
Avoid Merged cells at all cost....IMHO,it should never have been in Excel in the first place
Michael, thank you.

It appears that I won't be able to do what I would like. When I unmerge the 7 cells and apply your suggestion, visually, one still sees the seven cells. I wanted to give an option that would allow someone to approve labor for the entire week, via one choice, instead of making a selection for every day. It seems that I can provide the visual that I would like (via a merged cell), but, I don't know how to write a formula that can take the merged cell into consideration.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,603
Members
452,658
Latest member
GStorm

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