if statmens with multiple criteria

kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
460
Office Version
  1. 2019
hello all,

can i use more than 1 IF statment in cell C23 with these criteria?
1) if N22 is 0, return G22 value
2) if G22 is less than 10, return G22+N22
3) if G22 is greater than 10, return G22-negative value

much appreciate!

thanks everyone

hotel balance - v1.1.xlsx
CDEFGHIJKLMNOP
221019110kelvin123456781abc1230/
23000/
24000/
25000/
26000/
v1.6
Cell Formulas
RangeFormula
N22:N26N22=IF(SIGN(C22)=SIGN(G22),C22-G22,C22+G22)
O22:O26O22=IF(N22=0,"/",IF(N22>=1,"A to B",IF(N22<0,"B to A")))
E22:E26E22=C22-D22
G22:G26G22=C22-D22+F22
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Kelvin what if G22 equals 10? What do you want for a result.
 
Upvote 0
Kelvin what if G22 equals 10? What do you want for a result.
thank you very much for your reply, Ezguy4u

how about this, will it be more clear?
G22 is a value from: opening-rental+return
hotel balance - v1.1.xlsx
CDEFGHIJKLMNO
21opening quantityrental quantitynet balancereturn quantityclosing quantityguest nameguest contactnumber of staybooking numbervarianceaction
221019110kelvin123456781abc1230/
23000/
24000/
25000/
26000/
v1.6
Cell Formulas
RangeFormula
N22:N26N22=IF(SIGN(C22)=SIGN(G22),C22-G22,C22+G22)
O22:O26O22=IF(N22=0,"/",IF(N22>=1,"park to hotel",IF(N22<0,"return to park")))
E22:E26E22=C22-D22
G22:G26G22=C22-D22+F22
 
Upvote 0
someone can help in column C?
it wont work correctly if column N is negative numbers.

my rules:
sum column G & column N (G+N)
if column G is less than 10, it returns 10, C16 is an example
if column G is greater than 10, it can not returns 10, C17 is an example

hotel balance - v1.1.xlsx
CDEFGHMNO
13opening quantityrental quantitynet balancereturn quantityclosing quantityvarianceaction
151037182park to hotel
161055712-2return to park
17 #VALUE!#VALUE!#VALUE!#VALUE!
18#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!
v1.6
Cell Formulas
RangeFormula
N15:N18N15=IF(SIGN(C15)=SIGN(G15),C15-G15,C15+G15)
O15:O18O15=IF(N15=0,"/",IF(N15>=1,"park to hotel",IF(N15<0,"return to park")))
C15:C18C15=IF(G14<=10,SUM(G14,N14),IF(G14>=10,"",SUM(G14,N14)))
E15:E18E15=C15-D15
G15:G18G15=C15-D15+F15
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O14:O18Cell Valuecontains "park to hotel"textNO
O14:O18Cell Valuecontains "return to park"textNO
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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