Some of the equation works?

preifenstein

New Member
Joined
Jan 29, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Trying to make this work and I can't see what is wrong.

Equation in column "I" pulls the data, but only partially. Won't pull data from Sheet 3 if it's Sheet 3, C8 or C9. I can't figure it out.

Cell Formulas
RangeFormula
H2:H30H2=IF(Sheet2!$U2="Mohawk Commuter Full Plan Academic Year 2021-2022",Sheet3!$B$7,IF(Sheet2!$U2="Mohawk Classic Full Plan Academic Year 2021-2022",Sheet3!$B$8,IF(Sheet2!$U2="Mohawk WKND WAR Full Plan Academic Year 221-2022",Sheet3!$B$9,IF(Sheet2!$U2="Mohawk Ult Flex Full Plan Academic Year 2021-2022",Sheet3!$B$10,$I2))))
I2:I30I2=IF(Sheet2!$U2="Mohawk Commuter Split Plan Academic Year 2021-22",Sheet3!$C$7,IF(Sheet2!$U2="Mohawk Classic Split Plan Academic Year 2021-2022",Sheet3!$C$8,IF(Sheet2!$U2="Mohawk WKND WAR Split Plan Academic Year 221-2022",Sheet3!$C$9,IF(Sheet2!$U2="Mohawk Ult Flex Split Plan Academic Year 2021-2022",Sheet3!$C$10,0))))


Invoice Doc - Test.xlsx
U
2Mohawk Commuter Split Plan Academic Year 2021-22
3Mohawk Commuter Full Plan Academic Year 2021-2022
4Mohawk Classic Full Plan Academic Year 2021-2022
5Mohawk Commuter Full Plan Academic Year 2021-2022
6Mohawk Classic Full Plan Academic Year 2021-2022
7Mohawk Ult Flex Split Plan Academic Year 2021-2022
8Mohawk Commuter Split Plan Academic Year 2021-22
9Mohawk Classic Split Plan Academic Year 2021-2022
10Mohawk WKND WAR Full Plan Academic Year 221-2022
11Mohawk Classic Full Plan Academic Year 2021-2022
12Mohawk Commuter Split Plan Academic Year 2021-22
13Mohawk Classic Split Plan Academic Year 2021-2022
14Mohawk Classic Full Plan Academic Year 2021-2022
15Mohawk Commuter Full Plan Academic Year 2021-2022
16Mohawk Classic Full Plan Academic Year 2021-2022
17Mohawk Classic Split Plan Academic Year 2021-2022
18Mohawk Classic Full Plan Academic Year 2021-2022
19Mohawk Classic Split Plan Academic Year 2021-2022
20Mohawk Classic Split Plan Academic Year 2021-2022
21Mohawk Classic Split Plan Academic Year 2021-2022
22Mohawk Classic Full Plan Academic Year 2021-2022
23Mohawk Commuter Split Plan Academic Year 2021-22
24Mohawk Classic Full Plan Academic Year 2021-2022
25Mohawk Commuter Split Plan Academic Year 2021-22
26Mohawk Classic Split Plan Academic Year 2021-2022
27Mohawk Commuter Full Plan Academic Year 2021-2022
28Mohawk Commuter Full Plan Academic Year 2021-2022
29Mohawk Commuter Full Plan Academic Year 2021-2022
30Mohawk Commuter Split Plan Academic Year 2021-22
Sheet2


Invoice Doc - Test.xlsx
ABCD
1Residence FeesJune 15September 15November 15
2Option 1$8,167.00
3Option 2$2,886.00$5,406.00
4Option 3$2,911.00$2,352.00$3,054.00
5
6Meal Plan FeesOption 1Option 2
7Commuter$2,500.00$1,250.00
8Classic$2,800.00$1,400.00
9Weekend Warrior$3,100.00$1,550.00
10Ultimate Flex$3,400.00$1,700.00
Sheet3
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Some of the cells in column U have an extra space at the end of the text, which will cause a mismatch.

You either need to remove those spaces or wrap each reference to column U in the TRIM() function, e.g. TRIM(Sheet2!$U2)

Although, it would be better if you had the same text in both sheet 3 and sheet 2 so that you could use a lookup table instead of a lot of nested IF's that can easily go wrong.
 
Upvote 0
It won't pull from C9 as you don't have this "Mohawk WKND WAR Split Plan Academic Year 221-2022" in sheet2.
For C8, U9 has a space at the end of it.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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