Combining two formulas

joand

Active Member
Joined
Sep 18, 2003
Messages
266
I am trying to combine two formulas but I can't seem to get it to work. Any ideas? =IF($B$7='Lookups & Data'!$K$3,IF(B48=12,H48,0),IF($B$3='Lookups & Data'!$H$4,IF(H48-H47<0,0,H48-H47),IF($B$3='Lookups & Data'!$H$5,IF(H48-H47<0,0,H48-H47),IF(B48=1,H48,IF(H48-H47<0,0,H48-H47))))) and =IF($B$7='Lookups & Data'!$K$3,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0))

Sample.jpg
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
i have just used the formula and combined the TRUE part where B7=K3

Not applied to the image data

$B$7='Lookups & Data'!$K$3

as you have 2 TRUE statements

you may want to nest those parts

, IF(B48=12,H48,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0)),

=IF($B$7='Lookups & Data'!$K$3,IF(B48=12,H48,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0)), etc

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Msgboard.xlsm
ABCGHIJ
1Location Name:Template for Demonstration
2Location Address:1234 Main Street
3BP Calc Method:Full BreakpointFull Breakpoint must be met in the lease year before any payments are due to be paid
4% Rent Start Date:04/01/2020
5% Rent Stop Date:03/31/2035
6Lease Year Start Month:April
7% Rent Payment Timing:Quarterly
8Sales Reporting Timing:Monthly
9% Rent on Gross or Net Sales:Gross
45Calendar Month Reporting and Payments
46MonthMonth of Lease YearQuarter of Lease YearAmount Over / (Under) BPLYTD % Rent Due% Rent Payment Due
47
48Apr-2011(3,791,666.67)--0.00
49May-2021(3,358,333.33)--
50Jun-2031(2,925,000.00)--
51Jul-2042(2,491,666.67)--
52Aug-2052(2,058,333.33)--
53Sep-2062(1,625,000.00)--
54Oct-2073(1,191,666.67)--
55Nov-2083(758,333.33)--
56Dec-2093(325,000.00)--
57Jan-21104108,333.336,500.00-
58Feb-21114541,666.6732,500.00-
59Mar-21124975,000.0058,500.0058,500.00
Template for Demonstration
Cell Formulas
RangeFormula
C3C3=XLOOKUP(B3,'Lookups & Data'!H:H,'Lookups & Data'!I:I)
A48A48=B4
B48:B59B48=MOD(ROW()-ROW($A$48),12)+1
C48:C59C48=INT((B48-1)/3)+1
G48:G59G48=IF($B$3='Lookups & Data'!$H$4,IFERROR((E48-D48)+G47,""), IF($B$3='Lookups & Data'!$H$5, IF(MOD(B48,3)=0,IFERROR((E48-(D48/2))*(MOD(B48-1,3)+1),""), IFERROR((E48-D48)*(MOD(B48-1,3)+1),"")), IFERROR(F48-D48,"")))
H48:H59H48=IF($B$3='Lookups & Data'!$H$5,((G48/(MOD(ROW()-48,3)+1))*6%)+H47,IF('Template for Demonstration'!G48*6%<0,0,'Template for Demonstration'!G48*6%))
I48:I59I48=IFERROR(IF($B$7='Lookups & Data'!$K$3,IF(B48=12,H48,0),IF($B$3='Lookups & Data'!$H$4,IF(H48-H47<0,0,H48-H47),IF($B$3='Lookups & Data'!$H$5,IF(H48-H47<0,0,H48-H47),IF(B48=1,H48,IF(H48-H47<0,0,H48-H47))))),0)
J48J48=IF($B$7='Lookups & Data'!$K$3,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0))
A49:A59A49=DATE(YEAR(A48),MONTH(A48)+1,DAY(A48))
Cells with Data Validation
CellAllowCriteria
B3List='Lookups & Data'!$H$2:$H$5
B6List='Lookups & Data'!$A$2:$A$13
B7List='Lookups & Data'!$K$2:$K$4
B8List='Lookups & Data'!$M$2:$M$4
B9List='Lookups & Data'!$O$2:$O$3
 
Upvote 0
=IF($B$7='Lookups & Data'!$K$3,IF(B48=12,H48,0),IF($B$3='Lookups & Data'!$H$4,IF(H48-H47<0,0,H48-H47),IF($B$3='Lookups & Data'!$H$5,IF(H48-H47<0,0,H48-H47),IF(B48=1,H48,IF(H48-H47<0,0,H48-H47)))))

and

=IF($B$7='Lookups & Data'!$K$3,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0))

combined - I make it

=IF($B$7='Lookups & Data'!$K$3,IF(B48=12,H48,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0)), IF($B$3='Lookups & Data'!$H$4,IF(H48-H47<0,0,H48-H47),IF($B$3='Lookups & Data'!$H$5,IF(H48-H47<0,0,H48-H47),IF(B48=1,H48,IF(H48-H47<0,0,H48-H47)))))

does that work ??????

because you are using references to other sheets its difficult to follow
plus
i'm not sure what cells you are trying to combine the formula in - i'm assuming Column I

maybe a link to a share with the full file on may help
 
Upvote 0
i have added the formula to the link you PMed to me , as i said all help should be kept on the forum, so if you could also post the link here

The fomula i posted works and does give results in some of the cells - so its combined

as i said , i dont know what the expected result is

i put this formula
=IF($B$7='Lookups & Data'!$K$3,IF(B48=12,H48,IF(MOD(B48,3)=0,MAX(H48:H59)/4,0)), IF($B$3='Lookups & Data'!$H$4,IF(H48-H47<0,0,H48-H47),IF($B$3='Lookups & Data'!$H$5,IF(H48-H47<0,0,H48-H47),IF(B48=1,H48,IF(H48-H47<0,0,H48-H47)))))

into cell I48 and copied down
 
Upvote 0
i deleted the conversation because i replied to that in error, as mentioned should not be using for forum type questions and updated

I still do not follow what you are after - , i did not understand the reply in conversation - really sorry , i just dont get what you are after within the spreadsheet

Perhaps try explaining here again - with the link to the sample sheet and what cells you are wanting to populate with the formula and results expected

The 2 formulas have been combined now as per the first post , possibly i have got that wrong , as clearly they are not working when applied to your spreadsheet.

But i'm really not following - sorry

hopefully other members will pop by and see what i'm clearly missing here
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,692
Members
449,117
Latest member
Aaagu

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