HELP FRIENDS!

CHARODIAZ

New Member
Joined
Jun 22, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi! I´m a bit desperate, I need to use an IF formula where I not only have multiple variables but I need 3 possible outcomes not 2. And, granted, I might be to tired to think logically at this point!
So I´m doing a financial analysis where it´s important to know how many months are in the period when it begins and when it ends. Because projects start and finish at different times of the year. So I know that for the first cell I can use =13-MONTH('Project Set-up'!G12) (where G12 is the start date), and I know that all subsequent years are gonna be 12 months (so everything in between start and end date), but then I need to tell it to be zero in those cells that are greater than the end year of the project and to also calculate the months left on the exit year of the project.

Oh man! I hope I make sense, however thanks for the input!
 

Attachments

  • Screenshot (19).png
    Screenshot (19).png
    246.2 KB · Views: 8

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Did you ever use nested ifs?

Instead of 13-MONTH('Project Set-up'!G12)
Try:
IF(13-MONTH('Project Set-up'!G12)>"end year of the project",0,13-MONTH('Project Set-up'!G12))

(replace "end year of the project" with whichever cell has the necessary info)
 
Upvote 0
Did you ever use nested ifs?

Instead of 13-MONTH('Project Set-up'!G12)
Try:
IF(13-MONTH('Project Set-up'!G12)>"end year of the project",0,13-MONTH('Project Set-up'!G12))

(replace "end year of the project" with whichever cell has the necessary info)
Oh my god, I´m just seeing your message, it took me a good hour to figure it out. I hadn´t used IFS before but it worked like a charm.
Thanks for being so quick in replying and for sharing your knowledge. Much appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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