IF formula with multiple conditions - can't fix it

dulsie

New Member
Joined
Mar 23, 2018
Messages
1
Hi!

I am having troubles with an IF formula with multiple conditions.

This one works fine :

=ROUND(IF(AND([@[Distribution JJ]]="noos - first fill",[@[Distribution 760]]="noos - first fill",[@[Distribution BST]]="noos - first fill",[@[Distribution ONS]]="NOOS - FIRST FILL"),([@[Total bought (if NOOS) - min 600 units]]-[@[Sub Total ALL]])*'Buying Budget'!$Y$7,IF(AND([@[Distribution JJ]]="noos - first fill",[@[Distribution 760]]="noos - first fill",[@[Distribution BST]]=""),([@[Total bought (if NOOS) - min 600 units]]-[@[Sub Total ALL]])*'Buying Budget'!$Z$7,IF(AND([@[Distribution JJ]]="",[@[Distribution 760]]="",[@[Distribution BST]]="NOOS - FIRST FILL",[@[Distribution ONS]]="NOOS - FIRST FILL"),([@[Total bought (if NOOS) - min 600 units]]-[@[Sub Total ALL]])*'Buying Budget'!$AA$7,IF(AND([@[Distribution JJ]]="noos - first fill",[@[Distribution 760]]="noos - first fill",[@[Distribution BST]]="",[@[Distribution ONS]]="NOOS - FIRST FILL"),([@[Total bought (if NOOS) - min 600 units]]-[@[Sub Total ALL]])*'Buying Budget'!$AB$7,0)))),0)

But, when all these criterias are not met, I want to proceed with this formula :

=IFERROR(IF($BF50="P",(INDEX('Buying Grids P'!$A$4:$AG$1088,MATCH($C$48&[@[Distribution BST]],'Buying Grids P'!$A$4:$A$1088&'Buying Grids P'!$B$4:$B$1088,0),MATCH(BLAZERSNOOS[[#Headers],[Whrs BST]],'Buying Grids P'!$A$4:$AG$4,0))),(INDEX('Buying Grids S'!$A$4:$AG$1020,MATCH($C$48&[@[Distribution BST]],'Buying Grids S'!$A$4:$A$1020&'Buying Grids S'!$B$4:$B$1020,0),MATCH(BLAZERSNOOS[[#Headers],[Whrs BST]],'Buying Grids S'!$A$4:$AG$4,0)))),0)

I have tried to simply replace the last 0 in the first formula (highlighted in red) with this formula but it doesn't work. I am completely lost :eek:

Is there a genius here who could help me with this please? (I am sure there iiiiis!)

Thanks a lot.
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

cerfani

Well-known Member
Joined
Dec 15, 2014
Messages
1,136
when i pasted your formula into a blank workbook I got an error for the syntax of those names being incorrect... maybe because the name has a space??



what error message do you get?
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,109,341
Messages
5,528,147
Members
409,804
Latest member
aceyus_michael

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top