Nested Ifs referencing different cells

beardedcraig

New Member
Joined
Aug 2, 2018
Messages
3
ABCDEF
1Allocated Budget SpendForecast SpendTotal Spend (inc. Forecast)Max Budget (Overspend)Budget RAG
2£100£50£25£75£110

<tbody>
</tbody>



Can anyone help correct my formula please? I basically want to work out a single formula to use in F2 for the following rules:

IF D2<=A2 then display "G", IF D2>A2 and D2<e2 then="" display="" "a"="" or="" if="" d2="">E2 then display "R" ELSE display " "


The closest I have gotten is:

=IF((D2<=A2, "G", IF(AND(D2>A2, D2<e2), "a",="" if(d2="">E2, "R"), ""))</e2),></e2>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Nine Zero

Well-known Member
Joined
Mar 10, 2016
Messages
625
you are missing an operation.

What goes in the middle of D2 and E2

IF D2<=A2 then display "G", IF D2>A2 and D2_?_E2
 

philwojo

Well-known Member
Joined
May 10, 2013
Messages
533
What do you mean by the D2E2 part, not sure what that means? Are you saying for the 2nd IF that you want to check if D2 is greater than A2 and D2 is also ?? to E2?
 

Nine Zero

Well-known Member
Joined
Mar 10, 2016
Messages
625
Use this formula..... just replace the = sign in between D2 and E2 to whatever your operation is

=IF(D2<=A2,"G",IF(AND(D2>A2,D2=E2),"R"," "))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
What do you mean by
D2
<e2 style="background-color: transparent; color: rgb(51, 51, 51); font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;" d2="" if="" or="" "a"="" display="" then="">E2?</e2>
 

Forum statistics

Threads
1,175,531
Messages
5,897,955
Members
434,688
Latest member
vi28

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
Top